summaryrefslogtreecommitdiff
path: root/modules/mono/editor
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2018-04-24 20:58:25 +0200
committerGitHub <noreply@github.com>2018-04-24 20:58:25 +0200
commit6faa96fb89ab33fe3a6b37eecca1c7cf2934ff75 (patch)
tree4e224579d4fbd5902053a9408bd4068e2f70ffce /modules/mono/editor
parenta096df5e450ad028c1149b7378b65fd8a8c18b9c (diff)
parentff7fe9e771c0146b79aea7fa23a7bf262397992c (diff)
Merge pull request #18399 from neikeq/u
Mono fixes
Diffstat (limited to 'modules/mono/editor')
-rw-r--r--modules/mono/editor/bindings_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp
index a210b8e480..fadcc4ef57 100644
--- a/modules/mono/editor/bindings_generator.cpp
+++ b/modules/mono/editor/bindings_generator.cpp
@@ -730,7 +730,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
}
output.push_back(INDENT1 "public ");
- bool is_abstract = !ClassDB::can_instance(itype.name) && ClassDB::is_class_enabled(itype.name); // can_instance returns true if there's a constructor and the class is not 'disabled'
+ bool is_abstract = itype.is_object_type && !ClassDB::can_instance(itype.name) && ClassDB::is_class_enabled(itype.name); // can_instance returns true if there's a constructor and the class is not 'disabled'
output.push_back(itype.is_singleton ? "static class " : (is_abstract ? "abstract class " : "class "));
output.push_back(itype.proxy_name);