فهرست منبع

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;