animation overrides for jsons

This commit is contained in:
JHDev2006
2025-10-17 12:58:08 +01:00
parent 8fbe607983
commit 2e66c00163
2 changed files with 5 additions and 1 deletions

View File

@@ -17,4 +17,3 @@ loop_offset=0.0
bpm=0.0 bpm=0.0
beat_count=0 beat_count=0
bar_beats=4 bar_beats=4

View File

@@ -117,6 +117,11 @@ func get_resource(json_file: JSON) -> Resource:
animation_json = json.get("animations") animation_json = json.get("animations")
elif source_json.has("animations"): elif source_json.has("animations"):
animation_json = source_json.get("animations") animation_json = source_json.get("animations")
if source_json.has("animation_overrides"):
for i in source_json.get("animation_overrides").keys():
animation_json[i] = source_json.get("animation_overrides")[i]
if animation_json != {}: if animation_json != {}:
resource = load_image_from_path(source_resource_path) resource = load_image_from_path(source_resource_path)
if json.has("rect"): if json.has("rect"):