mirror of
https://github.com/godotengine/godot
synced 2024-11-02 09:38:07 +00:00
Mono: Fix -Wduplicated-branches warning
This commit is contained in:
parent
d4178bec1f
commit
89ce9a6f46
1 changed files with 2 additions and 7 deletions
|
@ -2536,13 +2536,8 @@ void BindingsGenerator::_default_argument_from_variant(const Variant &p_val, Arg
|
|||
|
||||
switch (p_val.get_type()) {
|
||||
case Variant::NIL:
|
||||
if (ClassDB::class_exists(r_iarg.type.cname)) {
|
||||
// Object type
|
||||
r_iarg.default_argument = "null";
|
||||
} else {
|
||||
// Variant
|
||||
r_iarg.default_argument = "null";
|
||||
}
|
||||
// Either Object type or Variant
|
||||
r_iarg.default_argument = "null";
|
||||
break;
|
||||
// Atomic types
|
||||
case Variant::BOOL:
|
||||
|
|
Loading…
Reference in a new issue