[Bf-extensions-cvs] [3471f0a1] master: object_fracture_cell: Cleanup/minor changes

Campbell Barton noreply at git.blender.org
Sun Jul 7 04:41:21 CEST 2019


Commit: 3471f0a1616cf30ecaa6ceeb575c4ecd6d80208f
Author: Campbell Barton
Date:   Sun Jul 7 12:40:04 2019 +1000
Branches: master
https://developer.blender.org/rBA3471f0a1616cf30ecaa6ceeb575c4ecd6d80208f

object_fracture_cell: Cleanup/minor changes

Changes to text/comments by @Gappy1, T61901

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

M	object_fracture_cell/__init__.py
M	object_fracture_cell/fracture_cell_setup.py

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

diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py
index af7e623c..dbba244b 100644
--- a/object_fracture_cell/__init__.py
+++ b/object_fracture_cell/__init__.py
@@ -93,6 +93,8 @@ def main_object(context, obj, level, **kw):
         bpy.ops.object.origin_set({"selected_editable_objects": objects},
                                   type='ORIGIN_GEOMETRY', center='MEDIAN')
 
+    #----------
+    # Recursion
     if level == 0:
         for level_sub in range(1, recursion + 1):
 
@@ -250,7 +252,7 @@ class FractureCell(Operator):
                                                       "source object")),
                    ('PARTICLE_CHILD', "Child Particles", ("All particle systems of the "
                                                           "child objects")),
-                   ('PENCIL', "Annotations", "Use points from visible annotation"),
+                   ('PENCIL', "Annotation Pencil", "Annotation Grease Pencil."),
                    ),
             options={'ENUM_FLAG'},
             default={'PARTICLE_OWN'},
@@ -324,7 +326,8 @@ class FractureCell(Operator):
     # Mesh Data Options
 
     use_smooth_faces: BoolProperty(
-            name="Smooth Faces",
+            name="Smooth Interior",
+            description="Smooth Faces of inner side",
             default=False,
             )
 
@@ -428,7 +431,8 @@ class FractureCell(Operator):
     use_debug_redraw: BoolProperty(
             name="Show Progress Realtime",
             description="Redraw as fracture is done",
-            default=True,
+            # FIXME(campbell): causes crash in 2.8.
+            default=False,
             )
 
     use_debug_bool: BoolProperty(
@@ -446,7 +450,7 @@ class FractureCell(Operator):
 
 
     def invoke(self, context, event):
-        print(self.recursion_chance_select)
+        # print(self.recursion_chance_select)
         wm = context.window_manager
         return wm.invoke_props_dialog(self, width=600)
 
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py
index 83dab79b..6bd8937d 100644
--- a/object_fracture_cell/fracture_cell_setup.py
+++ b/object_fracture_cell/fracture_cell_setup.py
@@ -38,8 +38,8 @@ def _points_from_object(depsgraph, scene, obj, source):
         'VERT_OWN', 'VERT_CHILD',
         }
 
-    print(source - _source_all)
-    print(source)
+    # print(source - _source_all)
+    # print(source)
     assert(len(source | _source_all) == len(_source_all))
     assert(len(source))
 
@@ -249,7 +249,7 @@ def cell_fracture_objects(context, obj,
             except RuntimeError:
                 import traceback
                 traceback.print_exc()
-
+        # Smooth faces will remain only inner faces, after appling boolean modifier.
         if use_smooth_faces:
             for bm_face in bm.faces:
                 bm_face.smooth = True



More information about the Bf-extensions-cvs mailing list