Bugfix #5147
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user