Explorar o código

Added CmdRemoveObject to delete-key

Daniel %!s(int64=10) %!d(string=hai) anos
pai
achega
4e7dad98eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/index.html

+ 1 - 1
editor/index.html

@@ -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;