mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Added missing Variant conversion and zero cases.
This commit is contained in:
parent
ebbcbe1439
commit
c80ee8d7bf
@ -739,6 +739,8 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||||||
POOL_VECTOR2I_ARRAY,
|
POOL_VECTOR2I_ARRAY,
|
||||||
POOL_VECTOR3_ARRAY,
|
POOL_VECTOR3_ARRAY,
|
||||||
POOL_VECTOR3I_ARRAY,
|
POOL_VECTOR3I_ARRAY,
|
||||||
|
POOL_VECTOR4_ARRAY,
|
||||||
|
POOL_VECTOR4I_ARRAY,
|
||||||
NIL
|
NIL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1307,6 +1309,9 @@ void Variant::zero() {
|
|||||||
case COLOR:
|
case COLOR:
|
||||||
*reinterpret_cast<Color *>(this->_data._mem) = Color();
|
*reinterpret_cast<Color *>(this->_data._mem) = Color();
|
||||||
break;
|
break;
|
||||||
|
case PROJECTION:
|
||||||
|
*reinterpret_cast<Projection *>(this->_data._mem) = Projection();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
this->clear();
|
this->clear();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user