kopia lustrzana https://github.com/vilemduha/blendercam
minor changes
rodzic
09b0750bb0
commit
faa50746e5
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue