Merge pull request #201 from opensourcecnc/master

Bug fix : creating a silhouette of a mesh failing
pull/273/head
Alain Pelletier 2024-09-30 13:35:06 -03:00 zatwierdzone przez GitHub
commit 7944e4e677
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -847,7 +847,8 @@ class CamOffsetSilhouete(Operator):
bpy.ops.object.duplicate()
obj = context.active_object
obj.data.dimensions = '3D'
if context.active_object.type != 'MESH':
obj.data.dimensions = '3D'
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True) # apply all transforms
bpy.ops.object.convert(target='MESH')
bpy.context.active_object.name = "temp_mesh"