浏览代码

Fixed save as not working with scripts

Paulb23 9 年之前
父节点
当前提交
c68e4e8cbe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tools/editor/plugins/script_editor_plugin.cpp

+ 1 - 0
tools/editor/plugins/script_editor_plugin.cpp

@@ -1138,6 +1138,7 @@ void ScriptEditor::_menu_option(int p_option) {
 				if (trim_trailing_whitespace_on_save) {
 					_trim_trailing_whitespace(current->get_text_edit());
 				}
+				editor->push_item(current->get_edited_script()->cast_to<Object>());
 				editor->save_resource_as( current->get_edited_script() );
 
 			} break;