forked from bartvdbraak/blender
- yet another minor fluidsim fix - when using a start frame != 1
the scene is now exported at that time, still numbering and reading the files from zero to noFrames
This commit is contained in:
parent
f98851f32c
commit
6f422a749a
@ -2268,7 +2268,7 @@ void loadFluidsimMesh(Object *srcob, int useRenderParams)
|
||||
float *bbStart = NULL, *bbSize = NULL;
|
||||
float lastBB[3];
|
||||
int displaymode = 0;
|
||||
int curFrame = G.scene->r.cfra - 1; /* start with 0 */
|
||||
int curFrame = G.scene->r.cfra - G.scene->r.sfra; /* start with 0 at start frame */
|
||||
char targetDir[FILE_MAXFILE+FILE_MAXDIR], targetFile[FILE_MAXFILE+FILE_MAXDIR];
|
||||
char debugStrBuffer[256];
|
||||
//snprintf(debugStrBuffer,256,"loadFluidsimMesh call (obid '%s', rp %d)\n", srcob->id.name, useRenderParams); // debug
|
||||
|
@ -400,7 +400,7 @@ void fluidsimBake(struct Object *ob)
|
||||
}
|
||||
|
||||
// dump data for frame 0
|
||||
G.scene->r.cfra = 1;
|
||||
G.scene->r.cfra = G.scene->r.sfra;
|
||||
scene_update_for_newframe(G.scene, G.scene->lay);
|
||||
|
||||
// start writing
|
||||
|
Loading…
Reference in New Issue
Block a user