Skip to content

Commit

Permalink
Merge pull request #2977 from t3du/setName
Browse files Browse the repository at this point in the history
SetNameNode: update animation armature action references for armature name changes
  • Loading branch information
luboslenco committed Dec 2, 2023
2 parents 9880bcd + 042f6eb commit 6b19296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/armory/logicnode/SetNameNode.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ class SetNameNode extends LogicNode {

if (object == null) return;

#if arm_skin
for(a in iron.Scene.active.animations)
if(a.armature != null && a.armature.name == object.name)
a.armature.name = name;
#end

object.name = name;

runOutput(0);
Expand Down

0 comments on commit 6b19296

Please sign in to comment.