summaryrefslogtreecommitdiff
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2022-01-10 21:46:41 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2022-01-12 14:19:12 +0300
commit422f7b280f8ee7b3f737b1e87e4c1de912e62f8a (patch)
treeecf24dcf58ce15579791c243a9406938f6147662 /editor/plugins/visual_shader_editor_plugin.cpp
parentd9f6e33663f365478150550acc3ec64aa9bb347c (diff)
Optimize include files to improve `shader_language.h` compilation speed
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 43997d489a..80419bb7da 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -3914,7 +3914,7 @@ void VisualShaderEditor::_preview_size_changed() {
static ShaderLanguage::DataType _get_global_variable_type(const StringName &p_variable) {
RS::GlobalVariableType gvt = RS::get_singleton()->global_variable_get_type(p_variable);
- return RS::global_variable_type_get_shader_datatype(gvt);
+ return (ShaderLanguage::DataType)RS::global_variable_type_get_shader_datatype(gvt);
}
void VisualShaderEditor::_update_preview() {