mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Use boundingBoxChanged signal to recompute convex hull
The boundingbox is the signal we should be listening for, since it does the same as the previous ones (and more!). This also fixes the issue that group nodes didn't get their convex hull set correctly on first creation CURA-6416
This commit is contained in:
parent
fe14024620
commit
8fb3a73c3a
1 changed files with 3 additions and 5 deletions
|
@ -60,13 +60,11 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||
previous_node = self._node
|
||||
# Disconnect from previous node signals
|
||||
if previous_node is not None and node is not previous_node:
|
||||
previous_node.transformationChanged.disconnect(self._onChanged)
|
||||
previous_node.parentChanged.disconnect(self._onChanged)
|
||||
previous_node.boundingBoxChanged.disconnect(self._onChanged)
|
||||
|
||||
super().setNode(node)
|
||||
# Mypy doesn't understand that self._node is no longer optional, so just use the node.
|
||||
node.transformationChanged.connect(self._onChanged)
|
||||
node.parentChanged.connect(self._onChanged)
|
||||
|
||||
node.boundingBoxChanged.connect(self._onChanged)
|
||||
|
||||
self._onChanged()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue