Browse Source

Fix is None check for typing

Lipu Fei 5 years ago
parent
commit
7495d7900f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/SimulationView/SimulationView.py

+ 1 - 1
plugins/SimulationView/SimulationView.py

@@ -493,7 +493,7 @@ class SimulationView(CuraView):
             # Make sure the SimulationPass is created
             layer_pass = self.getSimulationPass()
             renderer = self.getRenderer()
-            if renderer is not None:
+            if renderer is None:
                 return False
 
             renderer.addRenderPass(layer_pass)