Create .uid file when creating new Resource
This commit is contained in:
parent
cb411fa960
commit
28e5b213ae
4 changed files with 21 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue