diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 12:48:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 12:48:58 +0400 |
commit | 48c9da843c40ff8a97b462d8539185b662ba1567 (patch) | |
tree | 5ef66e3398e8a8b852e405cd29ba26ce3f617404 /object_fracture/fracture_ops.py | |
parent | 7690c2a38db02317d7ad289a16b8c55b5ec0ed3a (diff) |
swap vector multiplication order, also some style changes
Diffstat (limited to 'object_fracture/fracture_ops.py')
-rw-r--r-- | object_fracture/fracture_ops.py | 12 |
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: |