mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Project update after undo click
CURA-5323
This commit is contained in:
parent
ab0e643481
commit
d946733357
@ -1018,6 +1018,8 @@ class CuraApplication(QtApplication):
|
|||||||
scene_bounding_box = None
|
scene_bounding_box = None
|
||||||
is_block_slicing_node = False
|
is_block_slicing_node = False
|
||||||
active_build_plate = self.getMultiBuildPlateModel().activeBuildPlate
|
active_build_plate = self.getMultiBuildPlateModel().activeBuildPlate
|
||||||
|
|
||||||
|
print_information = self.getPrintInformation()
|
||||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||||
if (
|
if (
|
||||||
not issubclass(type(node), CuraSceneNode) or
|
not issubclass(type(node), CuraSceneNode) or
|
||||||
@ -1029,6 +1031,11 @@ class CuraApplication(QtApplication):
|
|||||||
is_block_slicing_node = True
|
is_block_slicing_node = True
|
||||||
|
|
||||||
count += 1
|
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:
|
if not scene_bounding_box:
|
||||||
scene_bounding_box = node.getBoundingBox()
|
scene_bounding_box = node.getBoundingBox()
|
||||||
else:
|
else:
|
||||||
@ -1036,7 +1043,7 @@ class CuraApplication(QtApplication):
|
|||||||
if other_bb is not None:
|
if other_bb is not None:
|
||||||
scene_bounding_box = scene_bounding_box + node.getBoundingBox()
|
scene_bounding_box = scene_bounding_box + node.getBoundingBox()
|
||||||
|
|
||||||
print_information = self.getPrintInformation()
|
|
||||||
if print_information:
|
if print_information:
|
||||||
print_information.setPreSliced(is_block_slicing_node)
|
print_information.setPreSliced(is_block_slicing_node)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user