mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 09:43:13 +08:00
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:
parent
f00e3f7363
commit
ba34fb6e35
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user