summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-16 09:32:38 +0200
committerGitHub <noreply@github.com>2020-06-16 09:32:38 +0200
commit33069352890e24370a424b8397b27ca1210d7acc (patch)
tree1166b21dbbab17c1e877b9e438266e0aa360b7ea /scene/resources
parentcb4ca328bf7b2073d73c51a9970f6590e95a24b1 (diff)
parentcc6ca5f1ebd17432c9fb7b74ad3da171250d44e9 (diff)
Merge pull request #39572 from Chaosus/fix_vs_4.0
Use path instead classname to prevent errors for exported visual shaders
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/visual_shader.cpp2
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);