Skip to content

Fix three parse/runtime errors that break the addon on Godot 4.7 - #73

Open
Dremet wants to merge 1 commit into
V-Sekai:mainfrom
Dremet:godot-4.7-compat
Open

Fix three parse/runtime errors that break the addon on Godot 4.7#73
Dremet wants to merge 1 commit into
V-Sekai:mainfrom
Dremet:godot-4.7-compat

Conversation

@Dremet

@Dremet Dremet commented Aug 11, 2026

Copy link
Copy Markdown

Godot 4.7 rejects a bare return in a function declared -> bool. Because
runtime/anim_tree.gd is preloaded through object_adapter.gd, that single parse
error cascades and the entire addon fails to load - the Unidot tool menu never
appears and every dependent script reports "Failed to compile depended scripts".

The other two are latent everywhere and merely surface more readily on 4.7:

  • yaml_parser.parse_line() is annotated -> Resource, but most unidot objects
    (UnidotPrefabImporter among them) are RefCounted, not Resource.
  • _meta_completed() derives a colour from importer_type.unicode_at(0..2) and
    indexes out of bounds when the type string is empty, which happens whenever
    parsed_meta is null.

Verified by converting four Synty POLYGON packs (12,032 assets) on Godot 4.7.1.

Co-Authored-By: hlarsen harley@harleylarsen.com

Godot 4.7 rejects a bare `return` in a function declared `-> bool`. Because
runtime/anim_tree.gd is preloaded through object_adapter.gd, that single parse
error cascades and the entire addon fails to load - the Unidot tool menu never
appears and every dependent script reports "Failed to compile depended scripts".

The other two are latent everywhere and merely surface more readily on 4.7:

- yaml_parser.parse_line() is annotated `-> Resource`, but most unidot objects
  (UnidotPrefabImporter among them) are RefCounted, not Resource.
- _meta_completed() derives a colour from importer_type.unicode_at(0..2) and
  indexes out of bounds when the type string is empty, which happens whenever
  parsed_meta is null.

Verified by converting four Synty POLYGON packs (12,032 assets) on Godot 4.7.1.

Co-Authored-By: hlarsen <harley@harleylarsen.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant