mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4525 updated scene node menu and added multi buildplate arrange
This commit is contained in:
parent
38670171f5
commit
41d5ec86a3
9 changed files with 272 additions and 44 deletions
|
@ -13,6 +13,7 @@ from UM.i18n import i18nCatalog
|
|||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
from cura.ZOffsetDecorator import ZOffsetDecorator
|
||||
from cura.Scene.BuildPlateDecorator import BuildPlateDecorator
|
||||
from cura.Arrange import Arrange
|
||||
from cura.ShapeArray import ShapeArray
|
||||
|
||||
|
@ -65,6 +66,10 @@ class MultiplyObjectsJob(Job):
|
|||
new_location = new_location.set(z = 100 - i * 20)
|
||||
node.setPosition(new_location)
|
||||
|
||||
# Same build plate
|
||||
build_plate_number = current_node.callDecoration("getBuildPlateNumber")
|
||||
node.callDecoration("setBuildPlateNumber", build_plate_number)
|
||||
|
||||
nodes.append(node)
|
||||
current_progress += 1
|
||||
status_message.setProgress((current_progress / total_progress) * 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue