| 1915 | //------------------------------------------------------------------------------ |
| 1916 | |
| 1917 | void 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 |
no test coverage detected