diff options
| author | Ignacio Etcheverry | 2018-04-24 20:46:28 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-28 22:59:38 +0200 |
| commit | 3f6ea30f8d752bafaf36be26f3f1e307aec285f6 (patch) | |
| tree | d1a6721477f0c18445ed481529bb3d4346409518 /modules | |
| parent | 58918b629d0b9462b1c3ae486ee51e14b935890a (diff) | |
| download | godot-3f6ea30f8d752bafaf36be26f3f1e307aec285f6.tar.gz godot-3f6ea30f8d752bafaf36be26f3f1e307aec285f6.tar.zst godot-3f6ea30f8d752bafaf36be26f3f1e307aec285f6.zip | |
Mono: Fix '!t' error messages when generating bindings
This error wasn't affecting the bindings generation process.
(cherry picked from commit ff7fe9e771c0146b79aea7fa23a7bf262397992c)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mono/editor/bindings_generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp index a210b8e48..fadcc4ef5 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); |
