Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
46da11e5
Commit
46da11e5
authored
Aug 08, 2013
by
Sebastian Eichelbaum
Browse files
[FIX] light shader for roi box was not aplied directly
parent
f31da634
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/core/graphicsEngine/WROIBox.cpp
src/core/graphicsEngine/WROIBox.cpp
+2
-2
No files found.
src/core/graphicsEngine/WROIBox.cpp
View file @
46da11e5
...
...
@@ -209,6 +209,8 @@ WROIBox::WROIBox( WPosition minPos, WPosition maxPos ) :
setUserData
(
this
);
setUpdateCallback
(
osg
::
ref_ptr
<
ROIBoxNodeCallback
>
(
new
ROIBoxNodeCallback
)
);
m_lightShader
->
apply
(
this
);
setDirty
();
}
...
...
@@ -368,8 +370,6 @@ void WROIBox::updateGFX()
setVertices
(
vertices
,
m_minPos
->
get
(),
m_maxPos
->
get
()
);
m_surfaceGeometry
->
setVertexArray
(
vertices
);
m_lightShader
->
apply
(
this
);
setDirty
();
m_needVertexUpdate
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment