You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
add explicit editor save tagging when saving
This commit is contained in:
@@ -264,6 +264,9 @@ void ShaderEditorPlugin::_menu_item_pressed(int p_index) {
|
||||
} else {
|
||||
EditorNode::get_singleton()->save_resource(edited_shaders[index].shader_inc);
|
||||
}
|
||||
if (edited_shaders[index].shader_editor) {
|
||||
edited_shaders[index].shader_editor->tag_saved_version();
|
||||
}
|
||||
} break;
|
||||
case FILE_SAVE_AS: {
|
||||
int index = shader_tabs->get_current_tab();
|
||||
@@ -282,6 +285,9 @@ void ShaderEditorPlugin::_menu_item_pressed(int p_index) {
|
||||
}
|
||||
EditorNode::get_singleton()->save_resource_as(edited_shaders[index].shader_inc, path);
|
||||
}
|
||||
if (edited_shaders[index].shader_editor) {
|
||||
edited_shaders[index].shader_editor->tag_saved_version();
|
||||
}
|
||||
} break;
|
||||
case FILE_INSPECT: {
|
||||
int index = shader_tabs->get_current_tab();
|
||||
|
||||
Reference in New Issue
Block a user