- //LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
- //CAM_ModuleObject *aModelRoot = dynamic_cast<CAM_ModuleObject*>(root());
- //if(study && aModelRoot == NULL) {
- // aModelRoot = createModuleObject( study->root() );
- // aModelRoot->setDataModel( this );
- // setRoot(aModelRoot);
- //}
+ LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
+ CAM_ModuleObject *aModelRoot = dynamic_cast<CAM_ModuleObject*>(root());
+ if(study && aModelRoot == NULL) {
+ aModelRoot = createModuleObject( study->root() );
+ aModelRoot->setDataModel( this );
+ setRoot(aModelRoot);
+ }