MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / disable

Method disable

libs/scene/Node.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void Node::disable(unsigned int state)
93{
94 bool wasVisible = visible();
95
96 _state &= ~state;
97
98 // After clearing a flag, this node can only switch from invisible to visible
99 if (!wasVisible && visible())
100 {
101 onVisibilityChanged(true);
102 }
103}
104
105bool Node::checkStateFlag(unsigned int state) const
106{

Callers 4

TEST_FFunction · 0.45
postMethod · 0.45
setNodeHiddenFunction · 0.45
unhideAffectedNodesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected