*/}}
Browse Source

Fix animation retarget id issue

YimingWu 2 months ago
parent
commit
a57958becd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      la_animation.c

+ 2 - 1
la_animation.c

@@ -249,8 +249,9 @@ void laAnimationEnsureRetarget(void* HolderInstance, laListHandle* action_list,
         ar->Retargeted[i].PlayStatus = aa->PlayByDefault?LA_ANIMATION_STATUS_PLAY_FWD:0;
         int j=0;
         for(laActionChannel* ac = aa->Channels.pFirst;ac;ac=ac->Item.pNext){
-            ar->Retargeted[i].Instances[j] = laAnimationGetRetargetedPropInstance(ac->AP->Prop,ac->AP->For);
+            ar->Retargeted[i].Instances[j] = laAnimationGetRetargetedPropInstance(ac->AP->Prop,ac->AP->For); j++;
         }
+        i++;
     }
     *retarget = ar;
 }