Преглед на файлове

Added CmdRemoveObject to delete-key

Daniel преди 9 години
родител
ревизия
4e7dad98eb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;