kopia lustrzana https://github.com/vilemduha/blendercam
fix a bug with custom cutters+exact mode
centering of the cutter was wrong, due to a new blender operator feature.pull/6/head
rodzic
6932765078
commit
73917cbe40
|
|
@ -54,7 +54,8 @@ def getCutterBullet(o):
|
|||
scale=o.cutter_diameter/cutob.dimensions.x
|
||||
cutter.scale*=BULLET_SCALE*scale
|
||||
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
|
||||
bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY')
|
||||
bpy.ops.object.origin_set(type='GEOMETRY_ORIGIN',center = 'BOUNDS')
|
||||
|
||||
#print(cutter.dimensions,scale)
|
||||
bpy.ops.rigidbody.object_add(type='ACTIVE')
|
||||
cutter.rigid_body.collision_shape = 'CONVEX_HULL'
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue