Decrease amount of nested if statements

Wont add anything to speed, but it will make it easier to read

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-23 10:05:05 +02:00
parent f00e3f7363
commit ba34fb6e35
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -188,7 +188,9 @@ class SolidView(View):
self._enabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(0)))
for node in DepthFirstIterator(scene.getRoot()):
if not node.render(renderer):
if node.render(renderer):
continue
if node.getMeshData() and node.isVisible():
uniforms = {}
shade_factor = 1.0