Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-03-19 18:25:12 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-03-19 18:25:12 +0400
commit526d79d6883ec3589e821780c69cb22e0a2206dc (patch)
tree8ec1c051131163af6676c4fc23a6687f754daa32 /source/creator
parent8fe0c0eb45fae46acd3325a5101d4c7bea3c17b5 (diff)
Fix: jittered brushes are not jittered, reported by kursad karatas.
Issue is sharing using global random generator which is shared with particle system which resets the seed due to some scene/option combination. Since it may be desirable to get predictable results with particles, made sure brushes allocate their own random number generator on startup and use that for jittering.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index d7b2d87ffe8..ba6cc728eca 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -84,6 +84,7 @@
#include "BLI_blenlib.h"
#include "BKE_blender.h"
+#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h" /* for DAG_on_visible_update */
#include "BKE_font.h"
@@ -1486,6 +1487,8 @@ int main(int argc, const char **argv)
IMB_init();
BKE_images_init();
+ BKE_brush_system_init();
+
#ifdef WITH_FFMPEG
IMB_ffmpeg_init();
#endif