*/}}
소스 검색

Fix animation retarget id issue

YimingWu 3 달 전
부모
커밋
a57958becd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }