mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 15:08:12 +00:00
animation overrides for jsons
This commit is contained in:
@@ -17,4 +17,3 @@ loop_offset=0.0
|
||||
bpm=0.0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
|
||||
|
@@ -117,6 +117,11 @@ func get_resource(json_file: JSON) -> Resource:
|
||||
animation_json = json.get("animations")
|
||||
elif source_json.has("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 != {}:
|
||||
resource = load_image_from_path(source_resource_path)
|
||||
if json.has("rect"):
|
||||
|
Reference in New Issue
Block a user