fix: replace f-strings with GDScript % formatting
This commit is contained in:
@@ -66,7 +66,7 @@ func load_model(path: String) -> void:
|
|||||||
if src_data.action:
|
if src_data.action:
|
||||||
var anim = src_data.action.copy()
|
var anim = src_data.action.copy()
|
||||||
anim_lib.add_animation(anim.name, anim)
|
anim_lib.add_animation(anim.name, anim)
|
||||||
print(f"SkinnedPlayerModel: copied animation '{anim.name}' ({anim.length:.2f}s)")
|
print("SkinnedPlayerModel: copied animation '%s' (%.2fs)" % [anim.name, anim.length])
|
||||||
|
|
||||||
# Also check NLA tracks
|
# Also check NLA tracks
|
||||||
if src_data.nla_tracks:
|
if src_data.nla_tracks:
|
||||||
@@ -75,7 +75,7 @@ func load_model(path: String) -> void:
|
|||||||
if strip.action:
|
if strip.action:
|
||||||
var anim = strip.action.copy()
|
var anim = strip.action.copy()
|
||||||
anim_lib.add_animation(anim.name, anim)
|
anim_lib.add_animation(anim.name, anim)
|
||||||
print(f"SkinnedPlayerModel: copied NLA animation '{anim.name}'")
|
print("SkinnedPlayerModel: copied NLA animation '%s'" % anim.name)
|
||||||
|
|
||||||
animation_player.add_animation_library("", anim_lib)
|
animation_player.add_animation_library("", anim_lib)
|
||||||
else:
|
else:
|
||||||
@@ -87,7 +87,7 @@ func load_model(path: String) -> void:
|
|||||||
print("SkinnedPlayerModel: %d animations available:" % anim_list.size())
|
print("SkinnedPlayerModel: %d animations available:" % anim_list.size())
|
||||||
for anim in anim_list:
|
for anim in anim_list:
|
||||||
var a = animation_player.get_animation(anim)
|
var a = animation_player.get_animation(anim)
|
||||||
print(f" - {anim} ({a.length:.2f}s, loop={a.loop_mode})")
|
print(" - %s (%.2fs, loop=%s)" % [anim, a.length, a.loop_mode])
|
||||||
|
|
||||||
# Auto-play idle
|
# Auto-play idle
|
||||||
if animation_player.has_animation("Idle"):
|
if animation_player.has_animation("Idle"):
|
||||||
|
|||||||
Reference in New Issue
Block a user