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:
Diffstat (limited to 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index 69fd49da..f5de1d97 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -38,10 +38,8 @@ def create_cutter(context, crack_type, scale, roughness):
False, False, False, False))
for v in context.scene.objects.active.data.vertices:
- v.co[0] += 1
- v.co[0] *= scale
- v.co[1] *= scale
- v.co[2] *= scale
+ v.co[0] += 1.0
+ v.co *= scale
bpy.ops.object.editmode_toggle()
bpy.ops.mesh.faces_shade_smooth()
@@ -76,10 +74,8 @@ def create_cutter(context, crack_type, scale, roughness):
bpy.ops.object.editmode_toggle()
for v in context.scene.objects.active.data.vertices:
- v.co[0] += 1
- v.co[0] *= scale
- v.co[1] *= scale
- v.co[2] *= scale
+ v.co[0] += 1.0
+ v.co *= scale
if crack_type == 'SPHERE_ROUGH':
for v in context.scene.objects.active.data.vertices: