mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use path instead classname to prevent errors for exported visual shaders
This commit is contained in:
parent
77990b87c2
commit
cc6ca5f1eb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue