1
0
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:
A Thousand Ships
2025-09-25 13:45:49 +02:00
parent 6e4e8072e1
commit bd65cfa876
43 changed files with 82 additions and 82 deletions

View File

@@ -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;
}
}