diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2018-04-24 14:49:07 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2018-04-24 14:49:07 +0300 |
commit | 4d7bf579e647b17281bac2165ffcf3f2833ae48c (patch) | |
tree | 4d9f5751f7503f65775f2232f5b2223adba0ea41 /plugins/ModelChecker | |
parent | 06b9e5240e29f83128e62a98effe7dcf40fe5e7c (diff) |
Do not keep triggering on changed in MA
Diffstat (limited to 'plugins/ModelChecker')
-rw-r--r-- | plugins/ModelChecker/ModelChecker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py index f85a7a249a..baa4a0d00b 100644 --- a/plugins/ModelChecker/ModelChecker.py +++ b/plugins/ModelChecker/ModelChecker.py @@ -31,6 +31,7 @@ class ModelChecker(QObject, Extension): Application.getInstance().initializationFinished.connect(self._pluginsInitialized) Application.getInstance().getController().getScene().sceneChanged.connect(self._onChanged) + Application.getInstance().globalContainerStackChanged.connect(self._onChanged) ## Pass-through to allow UM.Signal to connect with a pyqtSignal. def _onChanged(self, _): @@ -53,7 +54,6 @@ class ModelChecker(QObject, Extension): # has not done yet. global_container_stack = Application.getInstance().getGlobalContainerStack() if global_container_stack is None: - Application.getInstance().callLater(lambda: self.onChanged.emit()) return False material_shrinkage = self._getMaterialShrinkage() |