mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 11:33:12 +08:00
Code style
CURA-1601
This commit is contained in:
parent
4e3f4162c2
commit
f1b81dfad0
@ -94,10 +94,8 @@ class LayerView(View):
|
||||
if not self._composite_pass:
|
||||
self._composite_pass = self.getRenderer().getRenderPass("composite")
|
||||
|
||||
self._old_layer_bindings = self._composite_pass.getLayerBindings()
|
||||
layer_bindings = self._old_layer_bindings[:] # make a copy
|
||||
layer_bindings.append("layerview")
|
||||
self._composite_pass.setLayerBindings(layer_bindings)
|
||||
self._old_layer_bindings = self._composite_pass.getLayerBindings()[:] # make a copy so we can restore to it later
|
||||
self._composite_pass.getLayerBindings().append("layerview")
|
||||
self._old_composite_shader = self._composite_pass.getCompositeShader()
|
||||
self._composite_pass.setCompositeShader(self._layerview_composite_shader)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user