Unify usage of undo_redo in editor
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/filesystem_dock.h"
|
||||
#include "editor/plugins/text_shader_editor.h"
|
||||
#include "editor/plugins/visual_shader_editor_plugin.h"
|
||||
@ -225,7 +226,7 @@ void ShaderEditorPlugin::_close_shader(int p_index) {
|
||||
memdelete(c);
|
||||
edited_shaders.remove_at(p_index);
|
||||
_update_shader_list();
|
||||
EditorNode::get_singleton()->get_undo_redo()->clear_history(); // To prevent undo on deleted graphs.
|
||||
EditorNode::get_undo_redo()->clear_history(); // To prevent undo on deleted graphs.
|
||||
}
|
||||
|
||||
void ShaderEditorPlugin::_resource_saved(Object *obj) {
|
||||
|
||||
Reference in New Issue
Block a user