mirror of
https://github.com/godotengine/godot.git
synced 2024-10-22 21:21:53 +00:00
bool -> (int, float) and (int, float) -> bool implicit cast removed
Fix: #40249
This commit is contained in:
parent
39cf47ff82
commit
00020e5736
|
@ -505,8 +505,8 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||
switch (p_type_to) {
|
||||
case BOOL: {
|
||||
static const Type valid[] = {
|
||||
INT,
|
||||
FLOAT,
|
||||
//INT,
|
||||
//FLOAT,
|
||||
//STRING,
|
||||
NIL,
|
||||
};
|
||||
|
@ -515,7 +515,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||
} break;
|
||||
case INT: {
|
||||
static const Type valid[] = {
|
||||
BOOL,
|
||||
//BOOL,
|
||||
FLOAT,
|
||||
//STRING,
|
||||
NIL,
|
||||
|
@ -526,7 +526,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||
} break;
|
||||
case FLOAT: {
|
||||
static const Type valid[] = {
|
||||
BOOL,
|
||||
//BOOL,
|
||||
INT,
|
||||
//STRING,
|
||||
NIL,
|
||||
|
|
Loading…
Reference in New Issue
Block a user