Sfoglia il codice sorgente

Added CmdRemoveObject to delete-key

Daniel 9 anni fa
parent
commit
4e7dad98eb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;