You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
This commit is contained in:
@@ -1464,7 +1464,7 @@ void VisualShader::set_mode(Mode p_mode) {
|
||||
keep = false;
|
||||
} else {
|
||||
Ref<VisualShaderNode> from_node = graph[i].nodes[from].node;
|
||||
if (from_node->derives_from<VisualShaderNodeOutput>() || from_node->derives_from<VisualShaderNodeInput>()) {
|
||||
if (from_node->is_class("VisualShaderNodeOutput") || from_node->is_class("VisualShaderNodeInput")) {
|
||||
keep = false;
|
||||
}
|
||||
}
|
||||
@@ -1473,7 +1473,7 @@ void VisualShader::set_mode(Mode p_mode) {
|
||||
keep = false;
|
||||
} else {
|
||||
Ref<VisualShaderNode> to_node = graph[i].nodes[to].node;
|
||||
if (to_node->derives_from<VisualShaderNodeOutput>() || to_node->derives_from<VisualShaderNodeInput>()) {
|
||||
if (to_node->is_class("VisualShaderNodeOutput") || to_node->is_class("VisualShaderNodeInput")) {
|
||||
keep = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user