diff options
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 819d20d4770..d6cd7290038 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -57,12 +57,14 @@ static RNG *brush_rng; -void BKE_brush_system_init(void) { +void BKE_brush_system_init(void) +{ brush_rng = BLI_rng_new(0); BLI_rng_srandom(brush_rng, 31415682); } -void BKE_brush_system_exit(void) { +void BKE_brush_system_exit(void) +{ BLI_rng_free(brush_rng); } |