mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Merged objects are no longer moved on platform plate
Fixes Ultimaker/Cura#354
This commit is contained in:
parent
77bda1a7b1
commit
f1417858c1
2 changed files with 4 additions and 3 deletions
|
@ -434,7 +434,7 @@ class CuraApplication(QtApplication):
|
||||||
# Reset the position of each node
|
# Reset the position of each node
|
||||||
for node in group_node.getChildren():
|
for node in group_node.getChildren():
|
||||||
new_position = node.getMeshData().getCenterPosition()
|
new_position = node.getMeshData().getCenterPosition()
|
||||||
new_position.setY(0)
|
#new_position.setY(0)
|
||||||
node.setPosition(new_position)
|
node.setPosition(new_position)
|
||||||
|
|
||||||
# Use the previously found center of the group bounding box as the new location of the group
|
# Use the previously found center of the group bounding box as the new location of the group
|
||||||
|
|
|
@ -68,8 +68,9 @@ class PlatformPhysics:
|
||||||
|
|
||||||
# Move it downwards if bottom is above platform
|
# Move it downwards if bottom is above platform
|
||||||
move_vector = Vector()
|
move_vector = Vector()
|
||||||
if bbox.bottom > 0:
|
if not (node.getParent() and node.getParent().callDecoration("isGroup")): #If an object is grouped, don't move it down
|
||||||
move_vector.setY(-bbox.bottom)
|
if bbox.bottom > 0:
|
||||||
|
move_vector.setY(-bbox.bottom)
|
||||||
#if not Float.fuzzyCompare(bbox.bottom, 0.0):
|
#if not Float.fuzzyCompare(bbox.bottom, 0.0):
|
||||||
# pass#move_vector.setY(-bbox.bottom)
|
# pass#move_vector.setY(-bbox.bottom)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue