From fd68bb2596bff1990711862f90b4763553d2edac Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 23 Feb 2019 17:52:49 -0300 Subject: -Treat scalar conversions when calling functions as error, closes #24261 -Make shader editor display errors if exist when just opening it -Make ShaderMaterial not lose parameters if opened in error. --- editor/plugins/shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/shader_editor_plugin.cpp') diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index cc2e65cf6d..020a68a7ed 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -53,6 +53,7 @@ void ShaderTextEditor::set_edited_shader(const Ref &p_shader) { get_text_edit()->set_text(p_shader->get_code()); + _validate_script(); _line_col_changed(); } -- cgit v1.2.3