You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user