Optimize include files to improve shader_language.h compilation speed

This commit is contained in:
Yuri Roubinsky 2022-01-10 21:46:41 +03:00
parent d9f6e33663
commit 422f7b280f
9 changed files with 9 additions and 9 deletions

View file

@ -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() {