diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-06-15 21:44:03 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-06-15 21:44:03 +0300 |
commit | cc6ca5f1ebd17432c9fb7b74ad3da171250d44e9 (patch) | |
tree | 840fe1bece03917103d5dfca89cffb9f688f6475 /scene/resources/visual_shader.cpp | |
parent | 77990b87c2167c52e6271f6239bc4b9688977226 (diff) |
Use path instead classname to prevent errors for exported visual shaders
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r-- | scene/resources/visual_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 77d4dee21e..8236f9a9e3 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -1268,7 +1268,7 @@ Error VisualShader::_write_node(Type type, StringBuilder &global_code, StringBui String class_name = vsnode->get_class_name(); if (class_name == "VisualShaderNodeCustom") { - class_name = vsnode->get_script_instance()->get_script()->get_language()->get_global_class_name(vsnode->get_script_instance()->get_script()->get_path()); + class_name = vsnode->get_script_instance()->get_script()->get_path(); } if (!r_classes.has(class_name)) { global_code_per_node += vsnode->generate_global_per_node(get_mode(), type, node); |