@@ -292,7 +292,7 @@
if ( confirm( 'Delete ' + object.name + '?' ) === false ) return;
var parent = object.parent;
- editor.removeObject( object );
+ if ( parent !== null ) editor.execute( new CmdRemoveObject( object ) );
editor.select( parent );
break;