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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-07 05:40:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-07 05:40:04 +0300
commit3471f0a1616cf30ecaa6ceeb575c4ecd6d80208f (patch)
tree037d6a89b6ad7dc95e4d38fd42cff386aa343aac
parent9bc7dad463845abc247502c366ea3c9f94e4ad4b (diff)
object_fracture_cell: Cleanup/minor changes
Changes to text/comments by @Gappy1, T61901
-rw-r--r--object_fracture_cell/__init__.py12
-rw-r--r--object_fracture_cell/fracture_cell_setup.py6
2 files changed, 11 insertions, 7 deletions
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