Commit cf0c7190 authored by Jan Möbius's avatar Jan Möbius
Browse files

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4592 383ad7c9-94d9-4d36-a494-682f7c89f535
parent efeab123
......@@ -61,7 +61,7 @@ int FilePolyMeshPlugin::addEmpty( ){
// Set pointers for tree structure
object->setParent(PluginFunctions::objectRoot());
objectRoot_->appendChild(object);
PluginFunctions::objectRoot()->appendChild(object);
if (PluginFunctions::target_count() == 0 )
object->target(true);
......@@ -93,8 +93,8 @@ int FilePolyMeshPlugin::loadObject(QString _filename){
object = new MeshObject< PolyMesh, DATA_POLY_MESH >( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
// Set pointers for tree structure
object->setParent(objectRoot_);
objectRoot_->appendChild(object);
object->setParent(PluginFunctions::objectRoot());
PluginFunctions::objectRoot()->appendChild(object);
if (PluginFunctions::object_count() == 1 )
object->target(true);
......
......@@ -65,7 +65,7 @@ int FileTriangleMeshPlugin::addEmpty( ){
// Set pointers for tree structure
object->setParent(PluginFunctions::objectRoot());
objectRoot_->appendChild(object);
PluginFunctions::objectRoot()->appendChild(object);
if (PluginFunctions::target_count() == 1 )
object->target(true);
......@@ -97,8 +97,8 @@ int FileTriangleMeshPlugin::loadObject(QString _filename){
// Set pointers for tree structure
object->setParent(objectRoot_);
objectRoot_->appendChild(object);
object->setParent(PluginFunctions::objectRoot());
PluginFunctions::objectRoot()->appendChild(object);
if (PluginFunctions::object_count() == 1 )
object->target(true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment