489 Commits

Author SHA1 Message Date
Luke Ingram
65d7d4b8fe [godot] Explicitly adds the flag needed to install the MoltenVK XCFramework.
Addtionally, updates the path needed for the installer to find the MoltenVK.xcframework as the path changed.
2026-01-08 12:23:06 -04:00
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
52b114d18a [godot] Updates Vulkan SDK to newest minimum version available 2025-12-15 16:00:42 -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
Luke Ingram
a6c9cc2225 [godot] Updates the min version of the Mac Vulkan SDK to 1.3.268.0.
CI builds were broken because curl was attempting to download an
unavailable version of the Mac Vulkan SDK.
2025-11-13 14:59:45 -04: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
Mario Zechner
16cc202b2e [godot] Fix gdextension file for web binaries 2025-07-02 12:11:09 +02: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
c9456593db [godot] Closes #2861, force min ios version 12.0 via compiler/linker flag 2025-05-23 14:02:40 +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
4f5e990b5f [godot] Fetch major.minor from git branch name. 2025-05-05 14:26:35 +02:00
Mario Zechner
15b96b3ea8 Merge branch 'apple-fixes' of https://github.com/mihe/spine-runtimes into mihe-apple-fixes 2025-05-05 13:35:49 +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
88a26374fe [godot] Fixes extension setup script, closes #2801, closes #2804 2025-04-08 13:51:16 +02:00
Mario Zechner
a0d28956d2 [godot] Fixes for 4.4, see #2801 2025-04-08 13:51:16 +02:00
Mikael Hermansson
e5c5f7ee40 [godot] Fix various issues with GDExtension on Apple platforms 2025-02-27 00:14:00 +01: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
adcb11985f [godot] GH extension build 2024-12-11 18:59:44 +01:00
Mario Zechner
88b1c2c279 [godot] Remove the windows dev builds in gdextensions file. 2024-12-11 16:49:14 +01:00
Mario Zechner
0fc80d5b8b [godot] No extension editor builds for ios, android, web 2024-12-10 16:08:00 +01:00
Mario Zechner
f7da1e48ab [godot] Fix up setup script. 2024-12-10 16:04:17 +01:00
Mario Zechner
612fd27cee [godot] Remove bin/ from extension example. 2024-12-10 16:00:32 +01:00
Mario Zechner
84f070ccb8 [godot] Fix up build scripts 2024-12-10 15:47:24 +01:00
badlogic
72846c46f0 [godot] Rework extension build system. 2024-12-10 15:45:17 +01:00
Mario Zechner
8c66239ae5 [godot] Nuclear option, diffs don't apply on Windows runner... 2024-11-25 17:06:06 +01:00
Mario Zechner
9514811835 [godot] Final try fixing GHA build errors on windows runners 2024-11-25 16:43:25 +01:00
Mario Zechner
379c42fed3 [godot] Try another fix to get thorvg building on GHA 2024-11-25 16:15:12 +01:00
Mario Zechner
5d94d72c1e [godot] Apply throvg build fix from https://github.com/godotengine/godot/issues/95861\#issuecomment-2486021565 2024-11-25 15:17:26 +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
33ea72017b [godot] Fix branch enumeration in setup script. 2024-10-30 10:17:26 +01:00