Compositor: added a fixed (frame # based) seed in random, to ensure the
Texture node will give different results per frame.
This commit is contained in:
2006-11-02 10:30:35 +00:00
parent 402287940a
commit cd097a0e3c

View File

@@ -47,6 +47,7 @@
#include "BLI_arithb.h"
#include "BLI_blenlib.h"
#include "BLI_rand.h"
#include "BLI_threads.h"
#include "PIL_time.h"
@@ -2059,6 +2060,9 @@ void ntreeCompositExecTree(bNodeTree *ntree, RenderData *rd, int do_preview)
thdata.rd= rd;
thdata.stack= ntree->stack;
/* fixed seed, for example noise texture */
BLI_srand(rd->cfra);
/* sets need_exec tags in nodes */
totnode= setExecutableNodes(ntree, &thdata);