Преглед изворни кода

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;