159 Commits

Author SHA1 Message Date
Luke Ingram
07b8d96e19 [godot] Updates Vulkan SDK version
Additionally removes unnecessary comments.
2025-12-16 15:29:25 -04:00
Mario Zechner
e3f7e90912 [godot] Fix GDExtension crash on editor shutdown
Properly remove import/inspector plugins in NOTIFICATION_PREDELETE
before the extension is unloaded to prevent crash when Godot's
ResourceFormatImporter tries to unreference already-destroyed plugins.
2025-12-16 15:20:01 +01:00
Luke Ingram
55d46f2019 [godot] Removes unnecessary files and comments.
Additionally, CI builds were failing due to the commit where SpineSkin
had an init() method added, but this caused Godot 3.x builds to fail.

Our formatter was also run, so it should no longer fail the format
check.
2025-12-15 18:12:36 -04:00
Luke Ingram
b6d76309f3 [godot] Addresses #2899, #2980, #2985
Addresses the loader/saver registration issue in #2899.

Additionally, makes it such that you can adjust the SpineSkeletonData in
the inspector without crashes. This appears to have been caused by a
dangling pointer.

Finally, double-clicking on JSON in the inspector opens the text editor
and does not crash the Godot editor.
2025-12-11 23:43:40 -04:00
Mario Zechner
0fb8ba242c [godot] Fix version includes for extension 2025-11-19 17:06:44 +01:00
Mario Zechner
43ce791931 [godot] Fix 4.5 compat, build 4.5.1 and 4.4.1 on GH 2025-11-17 15:10:20 +01:00
Mario Zechner
02dec24ab7 [godot] Additional Godot 4.5 compatibility fixes
Fixes additional compatibility issues found when building against Godot 4.5:

1. String::parse_utf8() deprecated and removed in Godot 4.5
   - Replaced with String::utf8() for Godot 4.5+
   - Added version guards to maintain compatibility with older versions
   - Affected files: SpineAnimation, SpineAnimationTrack, SpineAtlasResource,
     SpineAttachment, SpineBoneData, SpineConstraintData, SpineEventData,
     SpineSkeletonDataResource, SpineSkin, SpineSlotData, SpineSprite

2. Editor header file locations changed in Godot 4.5
   - editor/editor_file_system.h -> editor/file_system/editor_file_system.h
   - editor/plugins/animation_*_editor_plugin.h -> editor/animation/animation_*_editor_plugin.h
   - Added version guards for correct include paths
   - Affected files: SpineAtlasResource, SpineAnimationTrack

These changes ensure spine-godot builds successfully with both Godot 4.5 and earlier versions.
2025-11-17 14:49:40 +01:00
Mario Zechner
938c72fa8f [godot] Backport Godot 4.5 compatibility fixes from 4.3-beta
Backported three commits from 4.3-beta branch:
- cc12304ba: Adds TOOLS_ENABLED guards for editor includes
- e063bae54: Adds version macro compatibility for deprecated=no builds (module)
- 3ffea502e: Adds version macro compatibility for deprecated=no builds (extension)

Changes:
1. SpineCommon.h:
   - Added #include "core/version_generated.gen.h"
   - Added VERSION_MAJOR/MINOR/PATCH macro fallbacks for both module and extension builds
   - These macros are needed when building with deprecated=no in Godot 4.5+

2. SpineSkeletonDataResource.cpp and SpineSprite.cpp:
   - Wrapped editor_interface.h includes with TOOLS_ENABLED guards
   - Required for building export templates (non-editor builds) in Godot 4.5+

This ensures spine-godot compiles correctly with Godot 4.5 in all build configurations.
2025-11-17 14:36:48 +01:00
Vladimir
d698e53e3e
Add Godot Spine Skin init method to binds (#2874) 2025-11-06 13:53:10 +01:00
Luke Ingram
77ec2a3cf5 [godot] Resolves #2925, fixes regression in building Godot 3.x
Incorrect parameters were being passed to functions. This was preventing
Godot 3.x from building.

This fix has been tested against the spine-godot modules 3.6.1-stable,
4.4.1-stable, and the 4.4.1-stable Spine GDExtension.
2025-09-17 21:54:48 -04:00
Davide Tantillo
f7f517d2cf Formatting. 2025-06-24 11:05:59 +02:00
Luke Ingram
b0890856cd [godot] Port of 6a08383
Adds specular map support to spine-godot on the Spine Runtimes 4.2 branch.
This was tested by porting the changes and compiling the spine-godot editor (version 4.3-stable) from source.
2025-05-28 23:23:56 -04:00
Mario Zechner
97d49b37b7 License header update 2025-05-26 13:24:06 +02:00
Mario Zechner
5b2d479d4b [godot] Fix loading of atlas page PNGs for non-resource paths (user://, absolute). Closes #2814 2025-05-06 16:11:03 +02:00
Mario Zechner
2712cffc00 [godot] Closes #2832, SpineSprite.set_time_scale/get_time_scale 2025-04-30 14:01:50 +02:00
Mario Zechner
76b572e2bf [godot] Fix UTF8 handling in texture atlas parsing, closes #2788 2025-04-18 15:30:26 +02:00
Mario Zechner
56cd91047c [godot] Fix more handling of CJK in names, see #2788 2025-04-18 14:47:00 +02:00
Mario Zechner
88f69fb2a6 [godot] Fix handling of CJK in names, see #2788 2025-04-18 14:33:10 +02:00
Mario Zechner
3cc43389b9 Formatting 2025-04-10 12:07:08 +02:00
Mario Zechner
fa30e51232 [godot] Fix preprocessor constructs 2025-04-10 12:03:27 +02:00
Mario Zechner
c5c71da28c [godot] Fix 3.5 build 2025-04-10 11:31:32 +02:00
Mario Zechner
a0d28956d2 [godot] Fixes for 4.4, see #2801 2025-04-08 13:51:16 +02:00
Mario Zechner
268d0e8f61 [godot] Remove print_lines. 2025-02-26 14:15:24 +01:00
Mario Zechner
e0c4cfffec [godot] Disable editor FS access in template builds. 2025-02-26 14:14:09 +01:00
Mario Zechner
42fea00bb0 Formatting 2025-02-26 13:39:58 +01:00
Mario Zechner
15cac5f9fc [godot] Closes #2747, rewrote the way we sync on-disk asset changes 2025-02-26 13:36:10 +01:00
Ferdy's Lab
5d23a7df19
fix godot crash when Visible Collision Shapes is enabled (#2761) 2025-02-25 10:23:19 +01:00
Mario Zechner
b610bd7b7a [godot] Fixes #2670, animation tracks must be set to discrete, so we only get a single name/loop change for each key. 2024-11-06 16:11:44 +01:00
Mario Zechner
eef05281fd [godot] Do not register editor types for template extension builds. 2024-10-30 10:45:21 +01:00
Mario Zechner
e4469dc77b [godot] Fix compilation with emscripten. 2024-10-17 09:00:18 +02:00
Mario Zechner
09542677f4 Fix Godot GH actions 2024-10-17 08:37:22 +02:00
Mario Zechner
5600d0d7c7 [godot] Fix statics deinitialization 2024-10-09 21:14:01 +02:00
Mario Zechner
62aad81999 [godot] Fix rendering in GDExtension. 2024-10-09 12:55:17 +02:00
Mario Zechner
13127aa587 [godot] Fix module build for Godot 4.x 2024-10-09 11:13:37 +02:00
Mario Zechner
687a6959bb [godot] Fix static initializers for GDExtension initialization order, fix remaining FIXMEs, except SpineSprite rendering. 2024-10-08 17:08:43 +02:00
Mario Zechner
0dc8422c95 [godot] Remove superfluous GodotSpineExtension::_readFile impl 2024-10-08 16:00:53 +02:00
Mario Zechner
6dbed6044f [godot] Fix importers for extension settings 2024-10-08 15:49:23 +02:00
Mario Zechner
14992a57c3 [godot] Fix up extension build and setup script, add VS Code task and launch config 2024-10-08 15:16:47 +02:00
Mario Zechner
887f20435f [godot] Non-working but compiling state. Crashes when registering various inspectors/editor plugins 2024-10-07 18:07:30 +02:00
Mario Zechner
e9b43f9c73 [godot] More GDExtension work. SpineAnimationTrack, animation mixes editor plugin and SpineMesh2D are non-functional due to missing APIs in godot-cpp 2024-10-07 13:55:01 +02:00
Mario Zechner
f8a0b5b6f7 Merge branch '4.2' into gdextension
# Conflicts:
#	spine-godot/spine_godot/SpineAtlasResource.cpp
2024-10-07 08:38:57 +02:00
Mario Zechner
d4a3444328 [godot] Add support for load from disk for Godot 3.x and example 2024-10-07 08:20:38 +02:00
Mario Zechner
e4999922b6 [godot] Fix missing return statement in SpineAtlasResource::load_from_atlas_file 2024-10-07 07:46:06 +02:00
Mario Zechner
dbf0db5c10 [godot] Expose physics constraints, closes #2612 2024-10-02 16:47:53 +02:00
Mario Zechner
7e6671456b [godot] Remove debug defines 2024-10-02 16:24:32 +02:00
Silc Lizard (Tokage) Renew
15ecabc4a8
[godot] Fix Skeleton/Texture loader for runtime loading (#2630) 2024-10-02 16:12:14 +02:00
Mario Zechner
4f06406e96 [godot] Fix spurious errors on first import of .atlas file. Closes #2385 2024-10-02 16:01:04 +02:00
Mario Zechner
29288ca44d [godo] Fix icons for Godot 4.x, see #2385 2024-10-02 13:37:19 +02:00
Mario Zechner
fb1cd5e161 [godot] Fix version check. 2024-10-01 14:19:35 +02:00
Mario Zechner
c58d4c7522 [godot] Fix compatibility with Godot 3.6, make it default build for 3.x. Closes #2647 2024-10-01 13:45:32 +02:00