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
ed4d3902
Commit
ed4d3902
authored
Aug 06, 2010
by
schurade
Browse files
[CHANGE] deactivating the module will also hide the manipulators
parent
f5f7a234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
src/modules/arbitraryPlane/WMArbitraryPlane.cpp
src/modules/arbitraryPlane/WMArbitraryPlane.cpp
+22
-2
No files found.
src/modules/arbitraryPlane/WMArbitraryPlane.cpp
View file @
ed4d3902
...
...
@@ -122,6 +122,7 @@ void WMArbitraryPlane::moduleMain()
m_moduleState
.
setResetable
(
true
,
true
);
m_moduleState
.
add
(
m_propCondition
);
m_moduleState
.
add
(
m_active
->
getUpdateCondition
()
);
while
(
!
m_shutdownFlag
()
)
{
...
...
@@ -132,9 +133,9 @@ void WMArbitraryPlane::moduleMain()
m_dirty
=
true
;
}
if
(
m_
showManipulators
->
changed
()
)
if
(
m_
active
->
changed
()
)
{
if
(
m_showManipulators
->
get
(
true
)
)
if
(
m_active
->
get
()
&&
m_showManipulators
->
get
()
)
{
m_s0
->
unhide
();
m_s1
->
unhide
();
...
...
@@ -148,6 +149,25 @@ void WMArbitraryPlane::moduleMain()
}
}
if
(
m_showManipulators
->
changed
()
)
{
if
(
m_showManipulators
->
get
(
true
)
)
{
if
(
m_active
->
get
()
)
{
m_s0
->
unhide
();
m_s1
->
unhide
();
m_s2
->
unhide
();
}
}
else
{
m_s0
->
hide
();
m_s1
->
hide
();
m_s2
->
hide
();
}
}
if
(
m_shutdownFlag
()
)
{
break
;
...
...
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