mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Core: Natively convert enum/BitField with Variant
This commit is contained in:
@@ -2294,14 +2294,6 @@ Variant::operator Vector<StringName>() const {
|
||||
return to;
|
||||
}
|
||||
|
||||
Variant::operator Side() const {
|
||||
return (Side) operator int();
|
||||
}
|
||||
|
||||
Variant::operator Orientation() const {
|
||||
return (Orientation) operator int();
|
||||
}
|
||||
|
||||
Variant::operator IPAddress() const {
|
||||
if (type == PACKED_FLOAT32_ARRAY || type == PACKED_INT32_ARRAY || type == PACKED_FLOAT64_ARRAY || type == PACKED_INT64_ARRAY || type == PACKED_BYTE_ARRAY) {
|
||||
Vector<int> addr = operator Vector<int>();
|
||||
|
||||
Reference in New Issue
Block a user