MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / onEditorEnable

Method onEditorEnable

Engine/source/gui/worldEditor/worldEditor.cpp:1917–1938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915//------------------------------------------------------------------------------
1916
1917void WorldEditor::onEditorEnable()
1918{
1919 // go through and copy the hidden field to the client objects...
1920 for(SimSetIterator itr(Sim::getRootGroup()); *itr; ++itr)
1921 {
1922 SceneObject * obj = dynamic_cast<SceneObject *>(*itr);
1923 if(!obj)
1924 continue;
1925
1926 // only work with a server obj...
1927 if(obj->isClientObject())
1928 continue;
1929
1930 // grab the client object
1931 SceneObject * clientObj = getClientObj(obj);
1932 if(!clientObj)
1933 continue;
1934
1935 //
1936 clientObj->setHidden(obj->isHidden());
1937 }
1938}
1939
1940//------------------------------------------------------------------------------
1941

Callers 1

editorEnabledMethod · 0.45

Calls 4

getRootGroupFunction · 0.85
isClientObjectMethod · 0.80
isHiddenMethod · 0.80
setHiddenMethod · 0.45

Tested by

no test coverage detected