mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 52 additions and 50 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue