| 122 | } |
| 123 | |
| 124 | std::shared_ptr<SceneRootObject> createRootFormObject( std::shared_ptr<Object> obj ) |
| 125 | { |
| 126 | std::shared_ptr<SceneRootObject> root = std::make_shared<SceneRootObject>(); |
| 127 | auto children = obj->children(); |
| 128 | for ( auto child : children ) |
| 129 | { |
| 130 | child->detachFromParent(); |
| 131 | root->addChild( child ); |
| 132 | } |
| 133 | return root; |
| 134 | } |
| 135 | |
| 136 | } |
no test coverage detected