Skip to content

Commit

Permalink
quick fix for issue wdas#16
Browse files Browse the repository at this point in the history
stopped hard-coding  24fps and  computed it from the  settings in the  session.
  • Loading branch information
redpawfx committed Oct 8, 2012
1 parent 010dd2a commit 052c550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/partio4Maya/partio4MayaShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ void partio4Maya::updateFileName (MString cacheFile, MString cacheDir,
)
{
formatExt = setExt(cacheFormat);
int fps = (float)(MTime(1.0, MTime::kSeconds).asUnits(MTime::uiUnit()));

MStringArray fileParts = partioGetBaseFileName(cacheFile);

Expand All @@ -244,7 +245,7 @@ void partio4Maya::updateFileName (MString cacheFile, MString cacheDir,
// special case for PDCs and maya nCache files because of the funky naming convention TODO: support substepped/retiming caches
if (formatExt == "pdc")
{
cacheFrame *= (int)(6000 / 24);
cacheFrame *= (int)(6000 / fps);
cachePadding = 1;
}

Expand Down
1 change: 1 addition & 0 deletions contrib/partio4Maya/partio4MayaShared.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#include <maya/MVector.h>
#include <maya/MGlobal.h>
#include <maya/MStringArray.h>
#include <maya/MTime.h>

#include "iconArrays.h"
#include "Partio.h"
Expand Down

0 comments on commit 052c550

Please sign in to comment.