mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 13:05:55 +08:00
Fix delayed convex hull recomputation
CURA-5896 If the current tool operation is still active, we need to delay the convex hull recomputation after the tool becomes inactive.
This commit is contained in:
parent
93afaf64c6
commit
3f1e0cc610
@ -142,6 +142,12 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
controller = Application.getInstance().getController()
|
controller = Application.getInstance().getController()
|
||||||
root = controller.getScene().getRoot()
|
root = controller.getScene().getRoot()
|
||||||
if self._node is None or controller.isToolOperationActive() or not self.__isDescendant(root, self._node):
|
if self._node is None or controller.isToolOperationActive() or not self.__isDescendant(root, self._node):
|
||||||
|
# If the tool operation is still active, we need to compute the convex hull later after the controller is
|
||||||
|
# no longer active.
|
||||||
|
if controller.isToolOperationActive():
|
||||||
|
self.recomputeConvexHullDelayed()
|
||||||
|
return
|
||||||
|
|
||||||
if self._convex_hull_node:
|
if self._convex_hull_node:
|
||||||
self._convex_hull_node.setParent(None)
|
self._convex_hull_node.setParent(None)
|
||||||
self._convex_hull_node = None
|
self._convex_hull_node = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user