mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -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)))
|
self._enabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(0)))
|
||||||
|
|
||||||
for node in DepthFirstIterator(scene.getRoot()):
|
for node in DepthFirstIterator(scene.getRoot()):
|
||||||
if not node.render(renderer):
|
if node.render(renderer):
|
||||||
|
continue
|
||||||
|
|
||||||
if node.getMeshData() and node.isVisible():
|
if node.getMeshData() and node.isVisible():
|
||||||
uniforms = {}
|
uniforms = {}
|
||||||
shade_factor = 1.0
|
shade_factor = 1.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue