Browse Source

allows for frame counts on animations with the same name, but not neccessarily the same channel name in the same directory

Chris Brunner 15 năm trước cách đây
mục cha
commit
2c15943a7c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      dtool/pptempl/Template.models.pp

+ 4 - 1
dtool/pptempl/Template.models.pp

@@ -395,7 +395,10 @@ $[TAB]$[MAYA2EGG] $[MAYA2EGG_OPTS] -p -a model -cn "$[CHAR_NAME]" -o $[target] $
     #define source $[MAYA_PREFIX]$[anim]$[MAYA_EXTENSION]
     #define begin 0
     #define end
-    #if $[$[anim]_frames]
+    #if $[$[CHAR_NAME]_$[anim]_frames]
+      #set begin $[word 1,$[$[CHAR_NAME]_$[anim]_frames]]
+      #set end $[word 2,$[$[CHAR_NAME]_$[anim]_frames]]
+    #elif $[$[anim]_frames]
       #set begin $[word 1,$[$[anim]_frames]]
       #set end $[word 2,$[$[anim]_frames]]
     #endif