kopia lustrzana https://github.com/vilemduha/blendercam
Merge pull request #201 from opensourcecnc/master
Bug fix : creating a silhouette of a mesh failingpull/273/head
commit
7944e4e677
|
@ -847,6 +847,7 @@ class CamOffsetSilhouete(Operator):
|
||||||
|
|
||||||
bpy.ops.object.duplicate()
|
bpy.ops.object.duplicate()
|
||||||
obj = context.active_object
|
obj = context.active_object
|
||||||
|
if context.active_object.type != 'MESH':
|
||||||
obj.data.dimensions = '3D'
|
obj.data.dimensions = '3D'
|
||||||
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True) # apply all transforms
|
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True) # apply all transforms
|
||||||
bpy.ops.object.convert(target='MESH')
|
bpy.ops.object.convert(target='MESH')
|
||||||
|
|
Ładowanie…
Reference in New Issue