mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
CURA-4526 Add transparency to the nozzle so the user can see the lines
and layers through the nozzle.
This commit is contained in:
parent
f216e2df24
commit
d415c5fcbb
@ -175,7 +175,7 @@ class SimulationPass(RenderPass):
|
|||||||
if head_position is not None:
|
if head_position is not None:
|
||||||
nozzle_node.setVisible(True)
|
nozzle_node.setVisible(True)
|
||||||
nozzle_node.setPosition(head_position)
|
nozzle_node.setPosition(head_position)
|
||||||
nozzle_batch = RenderBatch(self._nozzle_shader, type = RenderBatch.RenderType.Solid)
|
nozzle_batch = RenderBatch(self._nozzle_shader, type = RenderBatch.RenderType.Transparent)
|
||||||
nozzle_batch.addItem(nozzle_node.getWorldTransformation(), mesh = nozzle_node.getMeshData())
|
nozzle_batch.addItem(nozzle_node.getWorldTransformation(), mesh = nozzle_node.getMeshData())
|
||||||
nozzle_batch.render(self._scene.getActiveCamera())
|
nozzle_batch.render(self._scene.getActiveCamera())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user