summaryrefslogtreecommitdiffstats
path: root/editor/shader_create_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-28 12:32:01 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-28 12:32:01 +0200
commitba1bd6fc151d0f81fdbe851e08c98d9e00310df8 (patch)
tree16726c5f695629b2bbaca34f33df8e5d26ca74fd /editor/shader_create_dialog.cpp
parent17da2c5b53ffd34d15d90286e9f73dabbbe23ec4 (diff)
parenta7fa34db1d0ff12079cd72cf0de437c5ca1f0a04 (diff)
downloadredot-engine-ba1bd6fc151d0f81fdbe851e08c98d9e00310df8.tar.gz
Merge pull request #84077 from KoBeWi/this_path_is_valid_change_my_mind
Ignore path error for built-in scripts/shaders
Diffstat (limited to 'editor/shader_create_dialog.cpp')
-rw-r--r--editor/shader_create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/shader_create_dialog.cpp b/editor/shader_create_dialog.cpp
index 53ec1180a3..63e7077d3f 100644
--- a/editor/shader_create_dialog.cpp
+++ b/editor/shader_create_dialog.cpp
@@ -494,7 +494,7 @@ void ShaderCreateDialog::_update_dialog() {
if (!is_built_in && !is_path_valid) {
validation_panel->set_message(MSG_ID_SHADER, TTR("Invalid path."), EditorValidationPanel::MSG_ERROR);
}
- if (!path_error.is_empty()) {
+ if (!is_built_in && !path_error.is_empty()) {
validation_panel->set_message(MSG_ID_PATH, path_error, EditorValidationPanel::MSG_ERROR);
} else if (validation_panel->is_valid() && !is_new_shader_created) {
validation_panel->set_message(MSG_ID_SHADER, TTR("File exists, it will be reused."), EditorValidationPanel::MSG_OK);