Calculate AABB for non printing meshes

CURA-6480
This commit is contained in:
Lipu Fei 2019-04-24 13:05:59 +02:00
parent 3c43864dac
commit 24f28fe03e
2 changed files with 1 additions and 1 deletions

View file

@ -45,6 +45,7 @@ class GlobalStack(CuraContainerStack):
# Since the metadatachanged is defined in container stack, we can't use it here as a notifier for pyqt # Since the metadatachanged is defined in container stack, we can't use it here as a notifier for pyqt
# properties. So we need to tie them together like this. # properties. So we need to tie them together like this.
self.metaDataChanged.connect(self.configuredConnectionTypesChanged) self.metaDataChanged.connect(self.configuredConnectionTypesChanged)
self.metaDataChanged.connect(self.networkGroupNameChanged)
extrudersChanged = pyqtSignal() extrudersChanged = pyqtSignal()
configuredConnectionTypesChanged = pyqtSignal() configuredConnectionTypesChanged = pyqtSignal()

View file

@ -120,7 +120,6 @@ class SettingOverrideDecorator(SceneNodeDecorator):
changed = False changed = False
if self._is_non_printing_mesh != new_is_non_printing_mesh: if self._is_non_printing_mesh != new_is_non_printing_mesh:
self._is_non_printing_mesh = new_is_non_printing_mesh self._is_non_printing_mesh = new_is_non_printing_mesh
self._node.setCalculateBoundingBox(not self._is_non_printing_mesh)
changed = True changed = True
if self._is_non_thumbnail_visible_mesh != new_is_non_thumbnail_visible_mesh: if self._is_non_thumbnail_visible_mesh != new_is_non_thumbnail_visible_mesh:
changed = True changed = True