Skip to content

Commit

Permalink
Do not keep triggering on changed in MA
Browse files Browse the repository at this point in the history
  • Loading branch information
LipuFei committed Apr 24, 2018
1 parent 06b9e52 commit 4d7bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ModelChecker/ModelChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self):

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, _):
Expand All @@ -53,7 +54,6 @@ def checkObjectsForShrinkage(self):
# 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()
Expand Down

1 comment on commit 4d7bf57

@ianpaschal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workflow_2x

Please sign in to comment.