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

Removed double parenting in copyObject

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7958 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 169bd17a
......@@ -301,10 +301,6 @@ void Core::slotCopyObject( int _oldId , int& _newId ) {
// Integrate into object tree
copy->setParent( object->parent() );
if ( object->parent() )
object->parent()->appendChild(copy);
else
std::cerr << "Unable to add copy to object list" << std::endl;
// return the new id
_newId = copy->id();
......
Markdown is supported
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