From 7495d7900f102c38945413112ce89f9cec24ace7 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Mon, 11 Nov 2019 09:03:21 +0100 Subject: [PATCH] Fix is None check for typing --- plugins/SimulationView/SimulationView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index efb0fb7261..8318a68575 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/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)