Merge pull request #39571 from Chaosus/fix_vs

[3.2] Use path instead classname to prevent errors for exported visual shaders
This commit is contained in:
Rémi Verschelde 2020-06-16 09:33:15 +02:00 committed by GitHub
commit 2e8480d56a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1205,7 +1205,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);