We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fe0f1e + 08b9046 commit e7fa697Copy full SHA for e7fa697
editor/shader_create_dialog.cpp
@@ -243,7 +243,12 @@ void fog() {
243
244
emit_signal(SNAME("shader_include_created"), shader_inc);
245
} else {
246
- if (!is_built_in) {
+ if (is_built_in) {
247
+ Node *edited_scene = get_tree()->get_edited_scene_root();
248
+ if (likely(edited_scene)) {
249
+ shader->set_path(edited_scene->get_scene_file_path() + "::");
250
+ }
251
+ } else {
252
String lpath = ProjectSettings::get_singleton()->localize_path(file_path->get_text());
253
shader->set_path(lpath);
254
0 commit comments