From 2c15943a7c03ca1265ac7893e5f771e1eec3287a Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Mon, 29 Mar 2010 19:35:47 +0000 Subject: [PATCH] allows for frame counts on animations with the same name, but not neccessarily the same channel name in the same directory --- dtool/pptempl/Template.models.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dtool/pptempl/Template.models.pp b/dtool/pptempl/Template.models.pp index 1fa5142ddc..ea04642d14 100644 --- a/dtool/pptempl/Template.models.pp +++ b/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