mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Project update after undo click
CURA-5323
This commit is contained in:
parent
ab0e643481
commit
d946733357
1 changed files with 8 additions and 1 deletions
|
@ -1018,6 +1018,8 @@ class CuraApplication(QtApplication):
|
|||
scene_bounding_box = None
|
||||
is_block_slicing_node = False
|
||||
active_build_plate = self.getMultiBuildPlateModel().activeBuildPlate
|
||||
|
||||
print_information = self.getPrintInformation()
|
||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||
if (
|
||||
not issubclass(type(node), CuraSceneNode) or
|
||||
|
@ -1029,6 +1031,11 @@ class CuraApplication(QtApplication):
|
|||
is_block_slicing_node = True
|
||||
|
||||
count += 1
|
||||
|
||||
# After clicking the Undo button, if the build plate empty the project name needs to be set
|
||||
if print_information.baseName == '':
|
||||
print_information.setBaseName(node.getName())
|
||||
|
||||
if not scene_bounding_box:
|
||||
scene_bounding_box = node.getBoundingBox()
|
||||
else:
|
||||
|
@ -1036,7 +1043,7 @@ class CuraApplication(QtApplication):
|
|||
if other_bb is not None:
|
||||
scene_bounding_box = scene_bounding_box + node.getBoundingBox()
|
||||
|
||||
print_information = self.getPrintInformation()
|
||||
|
||||
if print_information:
|
||||
print_information.setPreSliced(is_block_slicing_node)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue