pull/200/head
palain 2022-01-24 11:01:01 -04:00
rodzic 09b0750bb0
commit faa50746e5
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ def import_gcode(context, filepath):
print("running read_some_data...")
scene = context.scene
mytool = scene.import_gcode
mytool = scene.cam_import_gcode
import time
then = time.time()
@ -110,7 +110,7 @@ def obj_from_pydata(name, verts, edges=None, close=True, collection_name=None):
bpy.context.view_layer.objects.active = obj
obj.select_set(True)
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
if bpy.context.scene.import_gcode.output == 'curve':
if bpy.context.scene.import_cam_gcode.output == 'curve':
bpy.ops.object.convert(target='CURVE')

Wyświetl plik

@ -928,7 +928,7 @@ class CustomPanel(bpy.types.Panel):
def draw(self, context):
layout = self.layout
scene = context.scene
isettings = scene.import_gcode
isettings = scene.cam_import_gcode
layout.prop(isettings, 'output')
layout.prop(isettings, "split_layers")

Wyświetl plik

@ -1316,7 +1316,7 @@ def getObjectOutline(radius, o, Offset): # FIXME: make this one operation indep
join = 2
else:
join = 1
for p1 in polygons: # sort by size before this???
for p1 in polygons.geoms: # sort by size before this???
# print(p1.type, len(polygons))
i += 1
if radius > 0: