CURA-4525 wip objects menu

This commit is contained in:
Jack Ha 2017-11-06 14:02:22 +01:00
parent 5b368fbfd5
commit 5050124699
6 changed files with 144 additions and 6 deletions

View file

@ -71,10 +71,11 @@ class SolidView(View):
else:
self._enabled_shader.setUniformValue("u_overhangAngle", math.cos(math.radians(0)))
activeBuildPlateNumber = Preferences.getInstance().getValue("view/build_plate_number") or 0
for node in DepthFirstIterator(scene.getRoot()):
if not node.render(renderer):
if node.getMeshData() and node.isVisible():
if node.getMeshData() and node.isVisible() and (node.callDecoration("getBuildPlateNumber") == activeBuildPlateNumber):
uniforms = {}
shade_factor = 1.0