|
@@ -487,6 +487,10 @@ bool WorldEditor::pasteSelection( bool dropSel )
|
|
if ( !obj )
|
|
if ( !obj )
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
+ StringTableEntry baseName = obj->getName();
|
|
|
|
+ String outName = (baseName != StringTable->EmptyString()) ? Sim::getUniqueName(baseName) : StringTable->EmptyString();
|
|
|
|
+ obj->assignName(outName);
|
|
|
|
+
|
|
if (targetGroup)
|
|
if (targetGroup)
|
|
targetGroup->addObject( obj );
|
|
targetGroup->addObject( obj );
|
|
|
|
|