mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-06 03:30:22 -08:00
animation overrides for jsons
This commit is contained in:
parent
8fbe607983
commit
2e66c00163
2 changed files with 5 additions and 1 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue