[Bf-extensions-cvs] [efe6892] master: Clear the patch group when rebuilding blobs, in order to avoid confusion when the old duplicators are deleted.

Lukas Tönne noreply at git.blender.org
Tue Dec 9 12:40:13 CET 2014


Commit: efe6892ff8382c1bc00ac469ec8c2e1f78980362
Author: Lukas Tönne
Date:   Tue Dec 9 12:39:32 2014 +0100
Branches: master
https://developer.blender.org/rBACefe6892ff8382c1bc00ac469ec8c2e1f78980362

Clear the patch group when rebuilding blobs, in order to avoid confusion
when the old duplicators are deleted.

===================================================================

M	object_physics_meadow/meadow.py

===================================================================

diff --git a/object_physics_meadow/meadow.py b/object_physics_meadow/meadow.py
index ff09b0a..676dd55 100644
--- a/object_physics_meadow/meadow.py
+++ b/object_physics_meadow/meadow.py
@@ -61,6 +61,9 @@ def make_samples(context, gridob, groundob):
 
 ### Duplicators for later instancing ###
 def make_blobs(context, gridob, groundob):
+    # patches are linked to current blobs, clear to avoid confusing reset
+    patch.patch_group_clear(context)
+    
     samples = make_samples(context, gridob, groundob)
     blob.make_blobs(context, gridob, groundob, samples)



More information about the Bf-extensions-cvs mailing list