mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 20:29:40 +08:00
Fix confusing nozzle-node 'ghost' in simulation-view.
part of a 30-min fix
This commit is contained in:
parent
f25bfd717e
commit
24f95a9cab
@ -112,7 +112,7 @@ class SimulationPass(RenderPass):
|
||||
|
||||
elif isinstance(node, NozzleNode):
|
||||
nozzle_node = node
|
||||
nozzle_node.setVisible(False)
|
||||
nozzle_node.setVisible(False) # Don't set to true, we render it separately!
|
||||
|
||||
elif getattr(node, "_outside_buildarea", False) and isinstance(node, SceneNode) and node.getMeshData() and node.isVisible():
|
||||
disabled_batch.addItem(node.getWorldTransformation(copy=False), node.getMeshData())
|
||||
@ -189,7 +189,6 @@ class SimulationPass(RenderPass):
|
||||
# but the user is not using the layer slider, and the compatibility mode is not enabled
|
||||
if not self._switching_layers and not self._compatibility_mode and self._layer_view.getActivity() and nozzle_node is not None:
|
||||
if head_position is not None:
|
||||
nozzle_node.setVisible(True)
|
||||
nozzle_node.setPosition(head_position)
|
||||
nozzle_batch = RenderBatch(self._nozzle_shader, type = RenderBatch.RenderType.Transparent)
|
||||
nozzle_batch.addItem(nozzle_node.getWorldTransformation(), mesh = nozzle_node.getMeshData())
|
||||
|
@ -388,7 +388,7 @@
|
||||
"layerview_move_retraction": [128, 127, 255, 255],
|
||||
"layerview_support_interface": [63, 127, 255, 127],
|
||||
"layerview_prime_tower": [0, 255, 255, 255],
|
||||
"layerview_nozzle": [181, 166, 66, 50],
|
||||
"layerview_nozzle": [224, 192, 16, 64],
|
||||
|
||||
"tab_status_connected": [50, 130, 255, 255],
|
||||
"tab_status_disconnected": [200, 200, 200, 255],
|
||||
|
Loading…
x
Reference in New Issue
Block a user