24 Commits

Author SHA1 Message Date
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
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
Mario Zechner
97d49b37b7 License header update 2025-05-26 13:24:06 +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
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
Mario Zechner
13127aa587 [godot] Fix module build for Godot 4.x 2024-10-09 11:13:37 +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
dbf0db5c10 [godot] Expose physics constraints, closes #2612 2024-10-02 16:47:53 +02:00
Mario Zechner
1101e71ec3 GDExtension support, heavy WIP 2024-07-05 19:05:42 +02:00
Mario Zechner
eecca2bdfa [godot] Add SkeletonData::set_reference_scale/get_reference_scale 2024-04-04 16:39:32 +02:00
Mario Zechner
e623140c99 [godot] Port 4.2 changes and expose in GDScript/C# 2024-04-04 15:26:48 +02:00
Mario Zechner
b70aa0c9fb [godot] Closes #2387, reimport of skeleton and atlas files is reflect by referencing objects. 2023-10-05 15:46:58 +02:00
Jordan Schidlowsky
96e25be436
Squashed commit of the following: (#2332)
commit 646078160b26979bc32093035602b7de12d9406b
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Mon Aug 7 15:34:37 2023 -0600

    revert SCsub

commit 6f388c3d4ce86944b3801fbd418bfc8a1dfe4e02
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Fri Aug 4 13:11:56 2023 -0600

    rename

commit 20eeeb5743a6687c189f61a91f14fcfcd179d0d8
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Fri Aug 4 13:11:11 2023 -0600

    fix

commit 6ef0c3d0698c851349f1cd5b44e06296cfc90011
Merge: 26c02da4a 94d043b56
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Fri Aug 4 13:09:54 2023 -0600

    Merge branch '4.1' into feature4.1/godot-performance-improvements

commit 26c02da4af1f7d518bbdc8c63a6c42f864b781b0
Merge: 0ce2ab656 002276351
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Thu Aug 3 15:57:49 2023 -0600

    Merge remote-tracking branch 'upstream/4.1' into feature4.1/godot-performance-improvements

commit 0ce2ab656364fde29063b8b8ccee36dd7f4583fd
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Thu Aug 3 12:11:51 2023 -0600

    Performance improvement using SNAME, caches for find_bone find_slot, temporary string buffer support.

commit 8082dfcef08cd5fab0c6247410c9177f0d6aa3bd
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Tue Jun 6 06:10:07 2023 -0600

    Support audio path in SpineEventData

commit bf864c7ff1e03bb8c8826b6766d09958d0ee36e0
Merge: da5b318ee 0a14457f3
Author: Jason Knight <jason@winterpixel.com>
Date:   Tue Nov 29 14:01:17 2022 -0600

    Merge branch 'upstream-4.1' into winterpixel-main

commit da5b318eea0881f2cc9656fcf09a355fe7b05392
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Fri Nov 25 14:02:09 2022 -0600

    fix incorrect ordering issue when applying custom materials to slot nodes

commit 000d22c5a8b160846c7742f181d9c7c6d816dd2a
Merge: 718643afc 8c3533835
Author: Brian Semrau <brian@winterpixel.com>
Date:   Thu Nov 24 16:02:30 2022 -0500

    Merge remote-tracking branch 'upstream/4.1' into winterpixel-main

commit 718643afc14b5f049961a4ec7b34ba9e8a3c6533
Merge: 2b743bd1d d8396435d
Author: Brian Semrau <brian@winterpixel.com>
Date:   Tue Oct 25 16:03:10 2022 -0400

    Merge remote-tracking branch 'upstream/4.1' into winterpixel-main

commit 2b743bd1dfa63f72169a36f2c43e43a2e2038f26
Author: Jordan Schidlowsky <jordanschidlowsky@gmail.com>
Date:   Thu Oct 13 12:37:04 2022 -0600

    Adding .o to ignore

commit 6ad70aaf162b7423c935b2baaff11c8bfbf2120b
Author: Brian Semrau <brian@winterpixel.com>
Date:   Wed Oct 12 13:59:32 2022 -0400

    Allow building by just adding to a modules folder
2023-09-04 10:58:43 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
634028495f [godot] Closes #2238, C# binding generator dislikes type mismatch in gettter/setter pairs. 2023-02-08 13:01:13 +01:00
Mario Zechner
68b59271bb [godot] Backport to 4.1 2022-07-18 10:27:42 +02:00