mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
More documentation
This commit is contained in:
parent
0bc860a5d6
commit
ee52f96f29
1 changed files with 3 additions and 3 deletions
|
@ -3,6 +3,7 @@ from UM.View.Renderer import Renderer
|
|||
from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator
|
||||
from UM.Resources import Resources
|
||||
|
||||
## View used to display g-code paths.
|
||||
class LayerView(View):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
@ -18,7 +19,6 @@ class LayerView(View):
|
|||
|
||||
if not self._material:
|
||||
self._material = renderer.createMaterial(Resources.getPath(Resources.ShadersLocation, 'basic.vert'), Resources.getPath(Resources.ShadersLocation, 'vertexcolor.frag'))
|
||||
|
||||
self._material.setUniformValue("u_color", [1.0, 0.0, 0.0, 1.0])
|
||||
|
||||
for node in DepthFirstIterator(scene.getRoot()):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue