Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
33069352
Unverified
Commit
33069352
authored
Jun 16, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39572 from Chaosus/fix_vs_4.0
Use path instead classname to prevent errors for exported visual shaders
parents
cb4ca328
cc6ca5f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
visual_shader.cpp
scene/resources/visual_shader.cpp
+1
-1
No files found.
scene/resources/visual_shader.cpp
View file @
33069352
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment