mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
1d10caf1ec
1 changed files with 10 additions and 6 deletions
|
@ -1330,13 +1330,17 @@ class CuraApplication(QtApplication):
|
||||||
if not node.getDecorator(ConvexHullDecorator):
|
if not node.getDecorator(ConvexHullDecorator):
|
||||||
node.addDecorator(ConvexHullDecorator())
|
node.addDecorator(ConvexHullDecorator())
|
||||||
|
|
||||||
# find node location
|
if node.callDecoration("isSliceable"):
|
||||||
offset_shape_arr, hull_shape_arr = ShapeArray.fromNode(node, min_offset = min_offset)
|
# find node location
|
||||||
# step is for skipping tests to make it a lot faster. it also makes the outcome somewhat rougher
|
offset_shape_arr, hull_shape_arr = ShapeArray.fromNode(node, min_offset = min_offset)
|
||||||
nodes = arranger.findNodePlacements(node, offset_shape_arr, hull_shape_arr, count = 1, step = 10)
|
# step is for skipping tests to make it a lot faster. it also makes the outcome somewhat rougher
|
||||||
|
nodes = arranger.findNodePlacements(node, offset_shape_arr, hull_shape_arr, count = 1, step = 10)
|
||||||
|
|
||||||
for new_node in nodes:
|
for new_node in nodes:
|
||||||
op = AddSceneNodeOperation(new_node, scene.getRoot())
|
op = AddSceneNodeOperation(new_node, scene.getRoot())
|
||||||
|
op.push()
|
||||||
|
else:
|
||||||
|
op = AddSceneNodeOperation(node, scene.getRoot())
|
||||||
op.push()
|
op.push()
|
||||||
|
|
||||||
scene.sceneChanged.emit(node)
|
scene.sceneChanged.emit(node)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue