summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_function.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-18 20:13:50 +0200
committerGitHub <noreply@github.com>2021-08-18 20:13:50 +0200
commitde7b6d13ebd48b2ce6f3da21124d843cb35e7c54 (patch)
tree17c3590c4433deb6030554c9bdb26d3750f61781 /modules/gdscript/gdscript_function.h
parenta619a92e3c7d051d5ac9fe49e1fb0a12db72983c (diff)
parent5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 (diff)
Merge pull request #51627 from mhilbrunner/todo-for-neikeq
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r--modules/gdscript/gdscript_function.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h
index 9e5ef0f632..87d8c03494 100644
--- a/modules/gdscript/gdscript_function.h
+++ b/modules/gdscript/gdscript_function.h
@@ -111,11 +111,7 @@ public:
}
if (!ClassDB::is_parent_class(obj->get_class_name(), native_type)) {
- // Try with underscore prefix
- StringName underscore_native_type = "_" + native_type;
- if (!ClassDB::is_parent_class(obj->get_class_name(), underscore_native_type)) {
- return false;
- }
+ return false;
}
return true;
} break;