You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Ignore path error for built-in scripts/shaders
This commit is contained in:
@@ -633,7 +633,7 @@ void ScriptCreateDialog::_update_dialog() {
|
|||||||
validation_panel->set_message(MSG_ID_SCRIPT, TTR("File exists, it will be reused."), EditorValidationPanel::MSG_OK);
|
validation_panel->set_message(MSG_ID_SCRIPT, TTR("File exists, it will be reused."), EditorValidationPanel::MSG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
validation_panel->set_message(MSG_ID_PATH, path_error, EditorValidationPanel::MSG_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ void ShaderCreateDialog::_update_dialog() {
|
|||||||
if (!is_built_in && !is_path_valid) {
|
if (!is_built_in && !is_path_valid) {
|
||||||
validation_panel->set_message(MSG_ID_SHADER, TTR("Invalid path."), EditorValidationPanel::MSG_ERROR);
|
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);
|
validation_panel->set_message(MSG_ID_PATH, path_error, EditorValidationPanel::MSG_ERROR);
|
||||||
} else if (validation_panel->is_valid() && !is_new_shader_created) {
|
} 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);
|
validation_panel->set_message(MSG_ID_SHADER, TTR("File exists, it will be reused."), EditorValidationPanel::MSG_OK);
|
||||||
|
|||||||
Reference in New Issue
Block a user