1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Create .uid file when creating new Resource

This commit is contained in:
kobewi
2024-11-12 22:17:17 +01:00
parent cb411fa960
commit 28e5b213ae
4 changed files with 21 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include "shader_create_dialog.h"
#include "core/config/project_settings.h"
#include "editor/editor_node.h"
#include "editor/gui/editor_file_dialog.h"
#include "editor/gui/editor_validation_panel.h"
#include "editor/themes/editor_scale.h"
@@ -240,6 +241,7 @@ void fog() {
alert->popup_centered();
return;
}
EditorNode::get_singleton()->ensure_uid_file(lpath);
emit_signal(SNAME("shader_include_created"), shader_inc);
} else {
@@ -258,6 +260,7 @@ void fog() {
alert->popup_centered();
return;
}
EditorNode::get_singleton()->ensure_uid_file(lpath);
}
emit_signal(SNAME("shader_created"), shader);