Rename Variant TRANSFORM to TRANSFORM3D
Also _transform to _transform3d
This commit is contained in:
parent
de3f6699a5
commit
08a85352fb
48 changed files with 132 additions and 132 deletions
|
@ -583,7 +583,7 @@ void register_global_constants() {
|
|||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_QUAT", Variant::QUAT);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_AABB", Variant::AABB);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_BASIS", Variant::BASIS);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_TRANSFORM", Variant::TRANSFORM);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_TRANSFORM3D", Variant::TRANSFORM3D);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_COLOR", Variant::COLOR);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_STRING_NAME", Variant::STRING_NAME);
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_NODE_PATH", Variant::NODE_PATH);
|
||||
|
|
|
@ -325,7 +325,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int
|
|||
}
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
ERR_FAIL_COND_V(len < 4 * 12, ERR_INVALID_DATA);
|
||||
Transform3D val;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
@ -1138,7 +1138,7 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
|
|||
r_len += 9 * 4;
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
if (buf) {
|
||||
Transform3D val = p_variant;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
|
|
@ -230,7 +230,7 @@ uint32_t PackedDataContainer::_pack(const Variant &p_data, Vector<uint8_t> &tmpd
|
|||
case Variant::QUAT:
|
||||
case Variant::AABB:
|
||||
case Variant::BASIS:
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
case Variant::PACKED_BYTE_ARRAY:
|
||||
case Variant::PACKED_INT32_ARRAY:
|
||||
case Variant::PACKED_INT64_ARRAY:
|
||||
|
|
|
@ -1416,7 +1416,7 @@ void ResourceFormatSaverBinaryInstance::write_variant(FileAccess *f, const Varia
|
|||
f->store_real(val.elements[2].z);
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
f->store_32(VARIANT_TRANSFORM);
|
||||
Transform3D val = p_property;
|
||||
f->store_real(val.basis.elements[0].x);
|
||||
|
|
|
@ -141,7 +141,7 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||
return target;
|
||||
}
|
||||
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
SETUP_TYPE(Transform3D)
|
||||
|
||||
/**/ TRY_TRANSFER_FIELD("xx", basis.elements[0][0])
|
||||
|
|
|
@ -149,7 +149,7 @@ MAKE_TYPE_INFO(Plane, Variant::PLANE)
|
|||
MAKE_TYPE_INFO(Quat, Variant::QUAT)
|
||||
MAKE_TYPE_INFO(AABB, Variant::AABB)
|
||||
MAKE_TYPE_INFO(Basis, Variant::BASIS)
|
||||
MAKE_TYPE_INFO(Transform3D, Variant::TRANSFORM)
|
||||
MAKE_TYPE_INFO(Transform3D, Variant::TRANSFORM3D)
|
||||
MAKE_TYPE_INFO(Color, Variant::COLOR)
|
||||
MAKE_TYPE_INFO(StringName, Variant::STRING_NAME)
|
||||
MAKE_TYPE_INFO(NodePath, Variant::NODE_PATH)
|
||||
|
|
|
@ -101,7 +101,7 @@ MAKE_TYPED_ARRAY(Plane, Variant::PLANE)
|
|||
MAKE_TYPED_ARRAY(Quat, Variant::QUAT)
|
||||
MAKE_TYPED_ARRAY(AABB, Variant::AABB)
|
||||
MAKE_TYPED_ARRAY(Basis, Variant::BASIS)
|
||||
MAKE_TYPED_ARRAY(Transform3D, Variant::TRANSFORM)
|
||||
MAKE_TYPED_ARRAY(Transform3D, Variant::TRANSFORM3D)
|
||||
MAKE_TYPED_ARRAY(Color, Variant::COLOR)
|
||||
MAKE_TYPED_ARRAY(StringName, Variant::STRING_NAME)
|
||||
MAKE_TYPED_ARRAY(NodePath, Variant::NODE_PATH)
|
||||
|
@ -199,7 +199,7 @@ MAKE_TYPED_ARRAY_INFO(Plane, Variant::PLANE)
|
|||
MAKE_TYPED_ARRAY_INFO(Quat, Variant::QUAT)
|
||||
MAKE_TYPED_ARRAY_INFO(AABB, Variant::AABB)
|
||||
MAKE_TYPED_ARRAY_INFO(Basis, Variant::BASIS)
|
||||
MAKE_TYPED_ARRAY_INFO(Transform3D, Variant::TRANSFORM)
|
||||
MAKE_TYPED_ARRAY_INFO(Transform3D, Variant::TRANSFORM3D)
|
||||
MAKE_TYPED_ARRAY_INFO(Color, Variant::COLOR)
|
||||
MAKE_TYPED_ARRAY_INFO(StringName, Variant::STRING_NAME)
|
||||
MAKE_TYPED_ARRAY_INFO(NodePath, Variant::NODE_PATH)
|
||||
|
|
|
@ -99,7 +99,7 @@ String Variant::get_type_name(Variant::Type p_type) {
|
|||
return "Basis";
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
case TRANSFORM3D: {
|
||||
return "Transform3D";
|
||||
|
||||
} break;
|
||||
|
@ -275,7 +275,7 @@ bool Variant::can_convert(Variant::Type p_type_from, Variant::Type p_type_to) {
|
|||
} break;
|
||||
case TRANSFORM2D: {
|
||||
static const Type valid[] = {
|
||||
TRANSFORM,
|
||||
TRANSFORM3D,
|
||||
NIL
|
||||
};
|
||||
|
||||
|
@ -319,7 +319,7 @@ bool Variant::can_convert(Variant::Type p_type_from, Variant::Type p_type_to) {
|
|||
valid_types = valid;
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
case TRANSFORM3D: {
|
||||
static const Type valid[] = {
|
||||
TRANSFORM2D,
|
||||
QUAT,
|
||||
|
@ -582,7 +582,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||
} break;
|
||||
case TRANSFORM2D: {
|
||||
static const Type valid[] = {
|
||||
TRANSFORM,
|
||||
TRANSFORM3D,
|
||||
NIL
|
||||
};
|
||||
|
||||
|
@ -626,7 +626,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
|||
valid_types = valid;
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
case TRANSFORM3D: {
|
||||
static const Type valid[] = {
|
||||
TRANSFORM2D,
|
||||
QUAT,
|
||||
|
@ -881,8 +881,8 @@ bool Variant::is_zero() const {
|
|||
return *_data._basis == Basis();
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
return *_data._transform == Transform3D();
|
||||
case TRANSFORM3D: {
|
||||
return *_data._transform3d == Transform3D();
|
||||
|
||||
} break;
|
||||
|
||||
|
@ -1100,8 +1100,8 @@ void Variant::reference(const Variant &p_variant) {
|
|||
_data._basis = memnew(Basis(*p_variant._data._basis));
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
_data._transform = memnew(Transform3D(*p_variant._data._transform));
|
||||
case TRANSFORM3D: {
|
||||
_data._transform3d = memnew(Transform3D(*p_variant._data._transform3d));
|
||||
} break;
|
||||
|
||||
// misc types
|
||||
|
@ -1289,8 +1289,8 @@ void Variant::_clear_internal() {
|
|||
case BASIS: {
|
||||
memdelete(_data._basis);
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
memdelete(_data._transform);
|
||||
case TRANSFORM3D: {
|
||||
memdelete(_data._transform3d);
|
||||
} break;
|
||||
|
||||
// misc types
|
||||
|
@ -1682,7 +1682,7 @@ String Variant::stringify(List<const void *> &stack) const {
|
|||
|
||||
return mtx + ")";
|
||||
} break;
|
||||
case TRANSFORM:
|
||||
case TRANSFORM3D:
|
||||
return operator Transform3D();
|
||||
case STRING_NAME:
|
||||
return operator StringName();
|
||||
|
@ -1960,8 +1960,8 @@ Variant::operator Basis() const {
|
|||
return *reinterpret_cast<const Quat *>(_data._mem);
|
||||
} else if (type == VECTOR3) {
|
||||
return Basis(*reinterpret_cast<const Vector3 *>(_data._mem));
|
||||
} else if (type == TRANSFORM) { // unexposed in Variant::can_convert?
|
||||
return _data._transform->basis;
|
||||
} else if (type == TRANSFORM3D) { // unexposed in Variant::can_convert?
|
||||
return _data._transform3d->basis;
|
||||
} else {
|
||||
return Basis();
|
||||
}
|
||||
|
@ -1972,16 +1972,16 @@ Variant::operator Quat() const {
|
|||
return *reinterpret_cast<const Quat *>(_data._mem);
|
||||
} else if (type == BASIS) {
|
||||
return *_data._basis;
|
||||
} else if (type == TRANSFORM) {
|
||||
return _data._transform->basis;
|
||||
} else if (type == TRANSFORM3D) {
|
||||
return _data._transform3d->basis;
|
||||
} else {
|
||||
return Quat();
|
||||
}
|
||||
}
|
||||
|
||||
Variant::operator Transform3D() const {
|
||||
if (type == TRANSFORM) {
|
||||
return *_data._transform;
|
||||
if (type == TRANSFORM3D) {
|
||||
return *_data._transform3d;
|
||||
} else if (type == BASIS) {
|
||||
return Transform3D(*_data._basis, Vector3());
|
||||
} else if (type == QUAT) {
|
||||
|
@ -2004,8 +2004,8 @@ Variant::operator Transform3D() const {
|
|||
Variant::operator Transform2D() const {
|
||||
if (type == TRANSFORM2D) {
|
||||
return *_data._transform2d;
|
||||
} else if (type == TRANSFORM) {
|
||||
const Transform3D &t = *_data._transform;
|
||||
} else if (type == TRANSFORM3D) {
|
||||
const Transform3D &t = *_data._transform3d;
|
||||
Transform2D m;
|
||||
m.elements[0][0] = t.basis.elements[0][0];
|
||||
m.elements[0][1] = t.basis.elements[1][0];
|
||||
|
@ -2501,8 +2501,8 @@ Variant::Variant(const Quat &p_quat) {
|
|||
}
|
||||
|
||||
Variant::Variant(const Transform3D &p_transform) {
|
||||
type = TRANSFORM;
|
||||
_data._transform = memnew(Transform3D(p_transform));
|
||||
type = TRANSFORM3D;
|
||||
_data._transform3d = memnew(Transform3D(p_transform));
|
||||
}
|
||||
|
||||
Variant::Variant(const Transform2D &p_transform) {
|
||||
|
@ -2745,8 +2745,8 @@ void Variant::operator=(const Variant &p_variant) {
|
|||
case BASIS: {
|
||||
*_data._basis = *(p_variant._data._basis);
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
*_data._transform = *(p_variant._data._transform);
|
||||
case TRANSFORM3D: {
|
||||
*_data._transform3d = *(p_variant._data._transform3d);
|
||||
} break;
|
||||
|
||||
// misc types
|
||||
|
@ -2934,13 +2934,13 @@ uint32_t Variant::hash() const {
|
|||
return hash;
|
||||
|
||||
} break;
|
||||
case TRANSFORM: {
|
||||
case TRANSFORM3D: {
|
||||
uint32_t hash = 5831;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int j = 0; j < 3; j++) {
|
||||
hash = hash_djb2_one_float(_data._transform->basis.elements[i][j], hash);
|
||||
hash = hash_djb2_one_float(_data._transform3d->basis.elements[i][j], hash);
|
||||
}
|
||||
hash = hash_djb2_one_float(_data._transform->origin[i], hash);
|
||||
hash = hash_djb2_one_float(_data._transform3d->origin[i], hash);
|
||||
}
|
||||
|
||||
return hash;
|
||||
|
@ -3255,9 +3255,9 @@ bool Variant::hash_compare(const Variant &p_variant) const {
|
|||
return true;
|
||||
} break;
|
||||
|
||||
case TRANSFORM: {
|
||||
const Transform3D *l = _data._transform;
|
||||
const Transform3D *r = p_variant._data._transform;
|
||||
case TRANSFORM3D: {
|
||||
const Transform3D *l = _data._transform3d;
|
||||
const Transform3D *r = p_variant._data._transform3d;
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (!(hash_compare_vector3(l->basis.elements[i], r->basis.elements[i]))) {
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
QUAT,
|
||||
AABB,
|
||||
BASIS,
|
||||
TRANSFORM,
|
||||
TRANSFORM3D,
|
||||
|
||||
// misc types
|
||||
COLOR,
|
||||
|
@ -200,7 +200,7 @@ private:
|
|||
Transform2D *_transform2d;
|
||||
::AABB *_aabb;
|
||||
Basis *_basis;
|
||||
Transform3D *_transform;
|
||||
Transform3D *_transform3d;
|
||||
PackedArrayRefBase *packed_array;
|
||||
void *_ptr; //generic pointer
|
||||
uint8_t _mem[sizeof(ObjData) > (sizeof(real_t) * 4) ? sizeof(ObjData) : (sizeof(real_t) * 4)];
|
||||
|
@ -322,8 +322,8 @@ public:
|
|||
operator ::AABB() const;
|
||||
operator Quat() const;
|
||||
operator Basis() const;
|
||||
operator Transform3D() const;
|
||||
operator Transform2D() const;
|
||||
operator Transform3D() const;
|
||||
|
||||
operator Color() const;
|
||||
operator NodePath() const;
|
||||
|
|
|
@ -2023,10 +2023,10 @@ static void _register_variant_builtin_methods() {
|
|||
Transform3D flip_x_transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0);
|
||||
Transform3D flip_y_transform = Transform3D(1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0);
|
||||
Transform3D flip_z_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM, "IDENTITY", identity_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM, "FLIP_X", flip_x_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM, "FLIP_Y", flip_y_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM, "FLIP_Z", flip_z_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM3D, "IDENTITY", identity_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM3D, "FLIP_X", flip_x_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM3D, "FLIP_Y", flip_y_transform);
|
||||
_VariantCall::add_variant_constant(Variant::TRANSFORM3D, "FLIP_Z", flip_z_transform);
|
||||
|
||||
Basis identity_basis = Basis();
|
||||
Basis flip_x_basis = Basis(-1, 0, 0, 0, 1, 0, 0, 0, 1);
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
case Variant::BASIS:
|
||||
init_basis(v);
|
||||
break;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
init_transform(v);
|
||||
break;
|
||||
case Variant::STRING_NAME:
|
||||
|
@ -144,8 +144,8 @@ public:
|
|||
_FORCE_INLINE_ static const ::AABB *get_aabb(const Variant *v) { return v->_data._aabb; }
|
||||
_FORCE_INLINE_ static Basis *get_basis(Variant *v) { return v->_data._basis; }
|
||||
_FORCE_INLINE_ static const Basis *get_basis(const Variant *v) { return v->_data._basis; }
|
||||
_FORCE_INLINE_ static Transform3D *get_transform(Variant *v) { return v->_data._transform; }
|
||||
_FORCE_INLINE_ static const Transform3D *get_transform(const Variant *v) { return v->_data._transform; }
|
||||
_FORCE_INLINE_ static Transform3D *get_transform(Variant *v) { return v->_data._transform3d; }
|
||||
_FORCE_INLINE_ static const Transform3D *get_transform(const Variant *v) { return v->_data._transform3d; }
|
||||
|
||||
// Misc types.
|
||||
_FORCE_INLINE_ static Color *get_color(Variant *v) { return reinterpret_cast<Color *>(v->_data._mem); }
|
||||
|
@ -217,8 +217,8 @@ public:
|
|||
v->type = Variant::BASIS;
|
||||
}
|
||||
_FORCE_INLINE_ static void init_transform(Variant *v) {
|
||||
v->_data._transform = memnew(Transform3D);
|
||||
v->type = Variant::TRANSFORM;
|
||||
v->_data._transform3d = memnew(Transform3D);
|
||||
v->type = Variant::TRANSFORM3D;
|
||||
}
|
||||
_FORCE_INLINE_ static void init_string_name(Variant *v) {
|
||||
memnew_placement(v->_data._mem, StringName);
|
||||
|
@ -320,7 +320,7 @@ public:
|
|||
return get_rect2(v);
|
||||
case Variant::RECT2I:
|
||||
return get_rect2i(v);
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
return get_transform(v);
|
||||
case Variant::TRANSFORM2D:
|
||||
return get_transform2d(v);
|
||||
|
@ -398,7 +398,7 @@ public:
|
|||
return get_rect2(v);
|
||||
case Variant::RECT2I:
|
||||
return get_rect2i(v);
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
return get_transform(v);
|
||||
case Variant::TRANSFORM2D:
|
||||
return get_transform2d(v);
|
||||
|
|
|
@ -1465,13 +1465,13 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorXForm<Vector<Vector2>, Transform2D, Vector<Vector2>>>(Variant::OP_MULTIPLY, Variant::TRANSFORM2D, Variant::PACKED_VECTOR2_ARRAY);
|
||||
register_op<OperatorEvaluatorXFormInv<Vector<Vector2>, Vector<Vector2>, Transform2D>>(Variant::OP_MULTIPLY, Variant::PACKED_VECTOR2_ARRAY, Variant::TRANSFORM2D);
|
||||
|
||||
register_op<OperatorEvaluatorMul<Transform3D, Transform3D, Transform3D>>(Variant::OP_MULTIPLY, Variant::TRANSFORM, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorXForm<Vector3, Transform3D, Vector3>>(Variant::OP_MULTIPLY, Variant::TRANSFORM, Variant::VECTOR3);
|
||||
register_op<OperatorEvaluatorXFormInv<Vector3, Vector3, Transform3D>>(Variant::OP_MULTIPLY, Variant::VECTOR3, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorXForm<::AABB, Transform3D, ::AABB>>(Variant::OP_MULTIPLY, Variant::TRANSFORM, Variant::AABB);
|
||||
register_op<OperatorEvaluatorXFormInv<::AABB, ::AABB, Transform3D>>(Variant::OP_MULTIPLY, Variant::AABB, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorXForm<Vector<Vector3>, Transform3D, Vector<Vector3>>>(Variant::OP_MULTIPLY, Variant::TRANSFORM, Variant::PACKED_VECTOR3_ARRAY);
|
||||
register_op<OperatorEvaluatorXFormInv<Vector<Vector3>, Vector<Vector3>, Transform3D>>(Variant::OP_MULTIPLY, Variant::PACKED_VECTOR3_ARRAY, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorMul<Transform3D, Transform3D, Transform3D>>(Variant::OP_MULTIPLY, Variant::TRANSFORM3D, Variant::TRANSFORM3D);
|
||||
register_op<OperatorEvaluatorXForm<Vector3, Transform3D, Vector3>>(Variant::OP_MULTIPLY, Variant::TRANSFORM3D, Variant::VECTOR3);
|
||||
register_op<OperatorEvaluatorXFormInv<Vector3, Vector3, Transform3D>>(Variant::OP_MULTIPLY, Variant::VECTOR3, Variant::TRANSFORM3D);
|
||||
register_op<OperatorEvaluatorXForm<::AABB, Transform3D, ::AABB>>(Variant::OP_MULTIPLY, Variant::TRANSFORM3D, Variant::AABB);
|
||||
register_op<OperatorEvaluatorXFormInv<::AABB, ::AABB, Transform3D>>(Variant::OP_MULTIPLY, Variant::AABB, Variant::TRANSFORM3D);
|
||||
register_op<OperatorEvaluatorXForm<Vector<Vector3>, Transform3D, Vector<Vector3>>>(Variant::OP_MULTIPLY, Variant::TRANSFORM3D, Variant::PACKED_VECTOR3_ARRAY);
|
||||
register_op<OperatorEvaluatorXFormInv<Vector<Vector3>, Vector<Vector3>, Transform3D>>(Variant::OP_MULTIPLY, Variant::PACKED_VECTOR3_ARRAY, Variant::TRANSFORM3D);
|
||||
|
||||
register_op<OperatorEvaluatorMul<Basis, Basis, Basis>>(Variant::OP_MULTIPLY, Variant::BASIS, Variant::BASIS);
|
||||
register_op<OperatorEvaluatorXForm<Vector3, Basis, Vector3>>(Variant::OP_MULTIPLY, Variant::BASIS, Variant::VECTOR3);
|
||||
|
@ -1547,7 +1547,7 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorStringModT<Quat>>(Variant::OP_MODULE, Variant::STRING, Variant::QUAT);
|
||||
register_op<OperatorEvaluatorStringModT<::AABB>>(Variant::OP_MODULE, Variant::STRING, Variant::AABB);
|
||||
register_op<OperatorEvaluatorStringModT<Basis>>(Variant::OP_MODULE, Variant::STRING, Variant::BASIS);
|
||||
register_op<OperatorEvaluatorStringModT<Transform3D>>(Variant::OP_MODULE, Variant::STRING, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorStringModT<Transform3D>>(Variant::OP_MODULE, Variant::STRING, Variant::TRANSFORM3D);
|
||||
|
||||
register_op<OperatorEvaluatorStringModT<Color>>(Variant::OP_MODULE, Variant::STRING, Variant::COLOR);
|
||||
register_op<OperatorEvaluatorStringModT<StringName>>(Variant::OP_MODULE, Variant::STRING, Variant::STRING_NAME);
|
||||
|
@ -1615,7 +1615,7 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorEqual<Quat, Quat>>(Variant::OP_EQUAL, Variant::QUAT, Variant::QUAT);
|
||||
register_op<OperatorEvaluatorEqual<::AABB, ::AABB>>(Variant::OP_EQUAL, Variant::AABB, Variant::AABB);
|
||||
register_op<OperatorEvaluatorEqual<Basis, Basis>>(Variant::OP_EQUAL, Variant::BASIS, Variant::BASIS);
|
||||
register_op<OperatorEvaluatorEqual<Transform3D, Transform3D>>(Variant::OP_EQUAL, Variant::TRANSFORM, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorEqual<Transform3D, Transform3D>>(Variant::OP_EQUAL, Variant::TRANSFORM3D, Variant::TRANSFORM3D);
|
||||
register_op<OperatorEvaluatorEqual<Color, Color>>(Variant::OP_EQUAL, Variant::COLOR, Variant::COLOR);
|
||||
|
||||
register_op<OperatorEvaluatorEqual<StringName, String>>(Variant::OP_EQUAL, Variant::STRING_NAME, Variant::STRING);
|
||||
|
@ -1661,7 +1661,7 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorNotEqual<Quat, Quat>>(Variant::OP_NOT_EQUAL, Variant::QUAT, Variant::QUAT);
|
||||
register_op<OperatorEvaluatorNotEqual<::AABB, ::AABB>>(Variant::OP_NOT_EQUAL, Variant::AABB, Variant::AABB);
|
||||
register_op<OperatorEvaluatorNotEqual<Basis, Basis>>(Variant::OP_NOT_EQUAL, Variant::BASIS, Variant::BASIS);
|
||||
register_op<OperatorEvaluatorNotEqual<Transform3D, Transform3D>>(Variant::OP_NOT_EQUAL, Variant::TRANSFORM, Variant::TRANSFORM);
|
||||
register_op<OperatorEvaluatorNotEqual<Transform3D, Transform3D>>(Variant::OP_NOT_EQUAL, Variant::TRANSFORM3D, Variant::TRANSFORM3D);
|
||||
register_op<OperatorEvaluatorNotEqual<Color, Color>>(Variant::OP_NOT_EQUAL, Variant::COLOR, Variant::COLOR);
|
||||
|
||||
register_op<OperatorEvaluatorNotEqual<StringName, String>>(Variant::OP_NOT_EQUAL, Variant::STRING_NAME, Variant::STRING);
|
||||
|
@ -1852,7 +1852,7 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorInDictionaryHas<Quat>>(Variant::OP_IN, Variant::QUAT, Variant::DICTIONARY);
|
||||
register_op<OperatorEvaluatorInDictionaryHas<::AABB>>(Variant::OP_IN, Variant::AABB, Variant::DICTIONARY);
|
||||
register_op<OperatorEvaluatorInDictionaryHas<Basis>>(Variant::OP_IN, Variant::BASIS, Variant::DICTIONARY);
|
||||
register_op<OperatorEvaluatorInDictionaryHas<Transform3D>>(Variant::OP_IN, Variant::TRANSFORM, Variant::DICTIONARY);
|
||||
register_op<OperatorEvaluatorInDictionaryHas<Transform3D>>(Variant::OP_IN, Variant::TRANSFORM3D, Variant::DICTIONARY);
|
||||
|
||||
register_op<OperatorEvaluatorInDictionaryHas<Color>>(Variant::OP_IN, Variant::COLOR, Variant::DICTIONARY);
|
||||
register_op<OperatorEvaluatorInDictionaryHas<StringName>>(Variant::OP_IN, Variant::STRING_NAME, Variant::DICTIONARY);
|
||||
|
@ -1889,7 +1889,7 @@ void Variant::_register_variant_operators() {
|
|||
register_op<OperatorEvaluatorInArrayFind<Quat, Array>>(Variant::OP_IN, Variant::QUAT, Variant::ARRAY);
|
||||
register_op<OperatorEvaluatorInArrayFind<::AABB, Array>>(Variant::OP_IN, Variant::AABB, Variant::ARRAY);
|
||||
register_op<OperatorEvaluatorInArrayFind<Basis, Array>>(Variant::OP_IN, Variant::BASIS, Variant::ARRAY);
|
||||
register_op<OperatorEvaluatorInArrayFind<Transform3D, Array>>(Variant::OP_IN, Variant::TRANSFORM, Variant::ARRAY);
|
||||
register_op<OperatorEvaluatorInArrayFind<Transform3D, Array>>(Variant::OP_IN, Variant::TRANSFORM3D, Variant::ARRAY);
|
||||
|
||||
register_op<OperatorEvaluatorInArrayFind<Color, Array>>(Variant::OP_IN, Variant::COLOR, Variant::ARRAY);
|
||||
register_op<OperatorEvaluatorInArrayFind<StringName, Array>>(Variant::OP_IN, Variant::STRING_NAME, Variant::ARRAY);
|
||||
|
|
|
@ -1489,7 +1489,7 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str
|
|||
p_store_string_func(p_store_string_ud, s + " )");
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
String s = "Transform3D( ";
|
||||
Transform3D t = p_variant;
|
||||
Basis &m3 = t.basis;
|
||||
|
|
|
@ -2307,8 +2307,8 @@ void Variant::interpolate(const Variant &a, const Variant &b, float c, Variant &
|
|||
r_dst = Transform3D(*a._data._basis).interpolate_with(Transform3D(*b._data._basis), c).basis;
|
||||
}
|
||||
return;
|
||||
case TRANSFORM: {
|
||||
r_dst = a._data._transform->interpolate_with(*b._data._transform, c);
|
||||
case TRANSFORM3D: {
|
||||
r_dst = a._data._transform3d->interpolate_with(*b._data._transform3d, c);
|
||||
}
|
||||
return;
|
||||
case COLOR: {
|
||||
|
|
|
@ -3915,7 +3915,7 @@ AnimationTrackEditor::TrackIndices AnimationTrackEditor::_confirm_insert(InsertD
|
|||
h.type == Variant::COLOR ||
|
||||
h.type == Variant::PLANE ||
|
||||
h.type == Variant::TRANSFORM2D ||
|
||||
h.type == Variant::TRANSFORM) {
|
||||
h.type == Variant::TRANSFORM3D) {
|
||||
update_mode = Animation::UPDATE_CONTINUOUS;
|
||||
}
|
||||
|
||||
|
@ -4468,7 +4468,7 @@ void AnimationTrackEditor::_new_track_property_selected(String p_name) {
|
|||
h.type == Variant::COLOR ||
|
||||
h.type == Variant::PLANE ||
|
||||
h.type == Variant::TRANSFORM2D ||
|
||||
h.type == Variant::TRANSFORM) {
|
||||
h.type == Variant::TRANSFORM3D) {
|
||||
update_mode = Animation::UPDATE_CONTINUOUS;
|
||||
}
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ void ConnectDialog::_add_bind() {
|
|||
case Variant::BASIS:
|
||||
value = Basis();
|
||||
break;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
value = Transform3D();
|
||||
break;
|
||||
case Variant::COLOR:
|
||||
|
@ -446,7 +446,7 @@ ConnectDialog::ConnectDialog() {
|
|||
type_list->add_item("Quat", Variant::QUAT);
|
||||
type_list->add_item("AABB", Variant::AABB);
|
||||
type_list->add_item("Basis", Variant::BASIS);
|
||||
type_list->add_item("Transform", Variant::TRANSFORM);
|
||||
type_list->add_item("Transform", Variant::TRANSFORM3D);
|
||||
type_list->add_item("Color", Variant::COLOR);
|
||||
type_list->select(0);
|
||||
|
||||
|
|
|
@ -3107,7 +3107,7 @@ bool EditorInspectorDefaultPlugin::parse_property(Object *p_object, Variant::Typ
|
|||
editor->setup(min, max, step, hide_slider);
|
||||
add_property_editor(p_path, editor);
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
EditorPropertyTransform *editor = memnew(EditorPropertyTransform);
|
||||
double min = -65535, max = 65535, step = default_float_step;
|
||||
bool hide_slider = true;
|
||||
|
|
|
@ -868,7 +868,7 @@ void EditorPropertyDictionary::update_property() {
|
|||
prop = editor;
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
EditorPropertyTransform *editor = memnew(EditorPropertyTransform);
|
||||
editor->setup(-100000, 100000, 0.001, true);
|
||||
prop = editor;
|
||||
|
|
|
@ -791,7 +791,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
|||
}
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
field_names.push_back("xx");
|
||||
field_names.push_back("xy");
|
||||
field_names.push_back("xz");
|
||||
|
@ -1557,7 +1557,7 @@ void CustomPropertyEditor::_modified(String p_string) {
|
|||
_emit_changed_whole_or_field();
|
||||
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
Basis basis;
|
||||
for (int i = 0; i < 9; i++) {
|
||||
basis.elements[i / 3][i % 3] = _parse_real_expression(value_editor[(i / 3) * 4 + i % 3]->get_text());
|
||||
|
@ -1639,7 +1639,7 @@ void CustomPropertyEditor::_focus_enter() {
|
|||
case Variant::AABB:
|
||||
case Variant::TRANSFORM2D:
|
||||
case Variant::BASIS:
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
for (int i = 0; i < MAX_VALUE_EDITORS; ++i) {
|
||||
if (value_editor[i]->has_focus()) {
|
||||
focused_value_editor = i;
|
||||
|
@ -1665,7 +1665,7 @@ void CustomPropertyEditor::_focus_exit() {
|
|||
case Variant::AABB:
|
||||
case Variant::TRANSFORM2D:
|
||||
case Variant::BASIS:
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
for (int i = 0; i < MAX_VALUE_EDITORS; ++i) {
|
||||
value_editor[i]->select(0, 0);
|
||||
}
|
||||
|
|
|
@ -199,7 +199,7 @@ protected:
|
|||
pinfo.type = Variant::TRANSFORM2D;
|
||||
} break;
|
||||
case RS::GLOBAL_VAR_TYPE_TRANSFORM: {
|
||||
pinfo.type = Variant::TRANSFORM;
|
||||
pinfo.type = Variant::TRANSFORM3D;
|
||||
} break;
|
||||
case RS::GLOBAL_VAR_TYPE_MAT4: {
|
||||
pinfo.type = Variant::PACKED_INT32_ARRAY;
|
||||
|
|
|
@ -2836,8 +2836,8 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
|
|||
case Variant::VECTOR2I:
|
||||
case Variant::VECTOR3:
|
||||
case Variant::VECTOR3I:
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM2D:
|
||||
case Variant::TRANSFORM3D:
|
||||
error = index_type.builtin_type != Variant::INT && index_type.builtin_type != Variant::FLOAT &&
|
||||
index_type.builtin_type != Variant::STRING;
|
||||
break;
|
||||
|
@ -2933,7 +2933,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
|
|||
result_type.builtin_type = Variant::VECTOR3;
|
||||
break;
|
||||
// Depends on the index.
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
case Variant::PLANE:
|
||||
case Variant::COLOR:
|
||||
case Variant::DICTIONARY:
|
||||
|
|
|
@ -88,7 +88,7 @@ uint32_t GDScriptByteCodeGenerator::add_temporary(const GDScriptDataType &p_type
|
|||
case Variant::QUAT:
|
||||
case Variant::AABB:
|
||||
case Variant::BASIS:
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
case Variant::COLOR:
|
||||
case Variant::STRING_NAME:
|
||||
case Variant::NODE_PATH:
|
||||
|
@ -467,7 +467,7 @@ void GDScriptByteCodeGenerator::write_type_adjust(const Address &p_target, Varia
|
|||
case Variant::BASIS:
|
||||
append(GDScriptFunction::OPCODE_TYPE_ADJUST_BASIS, 1);
|
||||
break;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
append(GDScriptFunction::OPCODE_TYPE_ADJUST_TRANSFORM, 1);
|
||||
break;
|
||||
case Variant::COLOR:
|
||||
|
@ -1100,7 +1100,7 @@ void GDScriptByteCodeGenerator::write_call_ptrcall(const Address &p_target, cons
|
|||
CASE_TYPE(PLANE);
|
||||
CASE_TYPE(AABB);
|
||||
CASE_TYPE(BASIS);
|
||||
CASE_TYPE(TRANSFORM);
|
||||
CASE_TYPE(TRANSFORM3D);
|
||||
CASE_TYPE(COLOR);
|
||||
CASE_TYPE(STRING_NAME);
|
||||
CASE_TYPE(NODE_PATH);
|
||||
|
|
|
@ -620,7 +620,7 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
|
|||
DISASSEMBLE_PTRCALL(PLANE);
|
||||
DISASSEMBLE_PTRCALL(AABB);
|
||||
DISASSEMBLE_PTRCALL(BASIS);
|
||||
DISASSEMBLE_PTRCALL(TRANSFORM);
|
||||
DISASSEMBLE_PTRCALL(TRANSFORM3D);
|
||||
DISASSEMBLE_PTRCALL(COLOR);
|
||||
DISASSEMBLE_PTRCALL(STRING_NAME);
|
||||
DISASSEMBLE_PTRCALL(NODE_PATH);
|
||||
|
|
|
@ -281,7 +281,7 @@ public:
|
|||
OPCODE_CALL_PTRCALL_QUAT,
|
||||
OPCODE_CALL_PTRCALL_AABB,
|
||||
OPCODE_CALL_PTRCALL_BASIS,
|
||||
OPCODE_CALL_PTRCALL_TRANSFORM,
|
||||
OPCODE_CALL_PTRCALL_TRANSFORM3D,
|
||||
OPCODE_CALL_PTRCALL_COLOR,
|
||||
OPCODE_CALL_PTRCALL_STRING_NAME,
|
||||
OPCODE_CALL_PTRCALL_NODE_PATH,
|
||||
|
|
|
@ -63,7 +63,7 @@ Variant::Type GDScriptParser::get_builtin_type(const StringName &p_type) {
|
|||
builtin_types["Plane"] = Variant::PLANE;
|
||||
builtin_types["Quat"] = Variant::QUAT;
|
||||
builtin_types["Basis"] = Variant::BASIS;
|
||||
builtin_types["Transform"] = Variant::TRANSFORM;
|
||||
builtin_types["Transform"] = Variant::TRANSFORM3D;
|
||||
builtin_types["Color"] = Variant::COLOR;
|
||||
builtin_types["RID"] = Variant::RID;
|
||||
builtin_types["Object"] = Variant::OBJECT;
|
||||
|
|
|
@ -251,7 +251,7 @@ void (*type_init_function_table[])(Variant *) = {
|
|||
&&OPCODE_CALL_PTRCALL_QUAT, \
|
||||
&&OPCODE_CALL_PTRCALL_AABB, \
|
||||
&&OPCODE_CALL_PTRCALL_BASIS, \
|
||||
&&OPCODE_CALL_PTRCALL_TRANSFORM, \
|
||||
&&OPCODE_CALL_PTRCALL_TRANSFORM3D, \
|
||||
&&OPCODE_CALL_PTRCALL_COLOR, \
|
||||
&&OPCODE_CALL_PTRCALL_STRING_NAME, \
|
||||
&&OPCODE_CALL_PTRCALL_NODE_PATH, \
|
||||
|
@ -416,7 +416,7 @@ void (*type_init_function_table[])(Variant *) = {
|
|||
#define OP_GET_PACKED_VECTOR2_ARRAY get_vector2_array
|
||||
#define OP_GET_PACKED_VECTOR3_ARRAY get_vector3_array
|
||||
#define OP_GET_PACKED_COLOR_ARRAY get_color_array
|
||||
#define OP_GET_TRANSFORM get_transform
|
||||
#define OP_GET_TRANSFORM3D get_transform
|
||||
#define OP_GET_TRANSFORM2D get_transform2d
|
||||
#define OP_GET_PLANE get_plane
|
||||
#define OP_GET_AABB get_aabb
|
||||
|
@ -1736,7 +1736,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
OPCODE_CALL_PTR(QUAT);
|
||||
OPCODE_CALL_PTR(AABB);
|
||||
OPCODE_CALL_PTR(BASIS);
|
||||
OPCODE_CALL_PTR(TRANSFORM);
|
||||
OPCODE_CALL_PTR(TRANSFORM3D);
|
||||
OPCODE_CALL_PTR(COLOR);
|
||||
OPCODE_CALL_PTR(STRING_NAME);
|
||||
OPCODE_CALL_PTR(NODE_PATH);
|
||||
|
|
|
@ -60,7 +60,7 @@ void GLTFNode::_bind_methods() {
|
|||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "parent"), "set_parent", "get_parent"); // GLTFNodeIndex
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "height"), "set_height", "get_height"); // int
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "xform"), "set_xform", "get_xform"); // Transform3D
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "xform"), "set_xform", "get_xform"); // Transform3D
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "mesh"), "set_mesh", "get_mesh"); // GLTFMeshIndex
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "camera"), "set_camera", "get_camera"); // GLTFCameraIndex
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "skin"), "set_skin", "get_skin"); // GLTFSkinIndex
|
||||
|
|
|
@ -499,7 +499,7 @@ static String variant_type_to_managed_name(const String &p_var_type_name) {
|
|||
Variant::QUAT,
|
||||
Variant::AABB,
|
||||
Variant::BASIS,
|
||||
Variant::TRANSFORM,
|
||||
Variant::TRANSFORM3D,
|
||||
Variant::COLOR,
|
||||
Variant::STRING_NAME,
|
||||
Variant::NODE_PATH,
|
||||
|
|
|
@ -2520,8 +2520,8 @@ bool BindingsGenerator::_arg_default_value_is_assignable_to_type(const Variant &
|
|||
p_arg_type.name == name_cache.type_NodePath;
|
||||
case Variant::NODE_PATH:
|
||||
return p_arg_type.name == name_cache.type_NodePath;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM2D:
|
||||
case Variant::TRANSFORM3D:
|
||||
case Variant::BASIS:
|
||||
case Variant::QUAT:
|
||||
case Variant::PLANE:
|
||||
|
@ -3123,7 +3123,7 @@ bool BindingsGenerator::_arg_default_value_from_variant(const Variant &p_val, Ar
|
|||
}
|
||||
r_iarg.def_param_mode = ArgumentInterface::NULLABLE_VAL;
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
Transform3D transform = p_val.operator Transform3D();
|
||||
if (transform == Transform3D()) {
|
||||
r_iarg.default_argument = "Transform.Identity";
|
||||
|
|
|
@ -81,7 +81,7 @@ struct CachedData {
|
|||
GDMonoClass *class_Vector3i;
|
||||
GDMonoClass *class_Basis;
|
||||
GDMonoClass *class_Quat;
|
||||
GDMonoClass *class_Transform;
|
||||
GDMonoClass *class_Transform3D;
|
||||
GDMonoClass *class_AABB;
|
||||
GDMonoClass *class_Color;
|
||||
GDMonoClass *class_Plane;
|
||||
|
|
|
@ -153,7 +153,7 @@ void GDMonoField::set_value_from_variant(MonoObject *p_object, const Variant &p_
|
|||
}
|
||||
|
||||
if (tclass == CACHED_CLASS(Transform3D)) {
|
||||
GDMonoMarshal::M_Transform from = MARSHALLED_OUT(Transform3D, p_value.operator ::Transform3D());
|
||||
GDMonoMarshal::M_Transform3D from = MARSHALLED_OUT(Transform3D, p_value.operator ::Transform3D());
|
||||
mono_field_set_value(p_object, mono_field, &from);
|
||||
break;
|
||||
}
|
||||
|
@ -348,8 +348,8 @@ void GDMonoField::set_value_from_variant(MonoObject *p_object, const Variant &p_
|
|||
GDMonoMarshal::M_Basis from = MARSHALLED_OUT(Basis, p_value.operator ::Basis());
|
||||
mono_field_set_value(p_object, mono_field, &from);
|
||||
} break;
|
||||
case Variant::TRANSFORM: {
|
||||
GDMonoMarshal::M_Transform from = MARSHALLED_OUT(Transform3D, p_value.operator ::Transform3D());
|
||||
case Variant::TRANSFORM3D: {
|
||||
GDMonoMarshal::M_Transform3D from = MARSHALLED_OUT(Transform3D, p_value.operator ::Transform3D());
|
||||
mono_field_set_value(p_object, mono_field, &from);
|
||||
} break;
|
||||
case Variant::COLOR: {
|
||||
|
|
|
@ -109,7 +109,7 @@ Variant::Type managed_to_variant_type(const ManagedType &p_type, bool *r_nil_is_
|
|||
}
|
||||
|
||||
if (vtclass == CACHED_CLASS(Transform3D)) {
|
||||
return Variant::TRANSFORM;
|
||||
return Variant::TRANSFORM3D;
|
||||
}
|
||||
|
||||
if (vtclass == CACHED_CLASS(AABB)) {
|
||||
|
@ -520,9 +520,9 @@ MonoObject *variant_to_mono_object(const Variant &p_var) {
|
|||
GDMonoMarshal::M_Basis from = MARSHALLED_OUT(Basis, p_var.operator ::Basis());
|
||||
return mono_value_box(mono_domain_get(), CACHED_CLASS_RAW(Basis), &from);
|
||||
}
|
||||
case Variant::TRANSFORM: {
|
||||
GDMonoMarshal::M_Transform from = MARSHALLED_OUT(Transform, p_var.operator ::Transform());
|
||||
return mono_value_box(mono_domain_get(), CACHED_CLASS_RAW(Transform), &from);
|
||||
case Variant::TRANSFORM3D: {
|
||||
GDMonoMarshal::M_Transform3D from = MARSHALLED_OUT(Transform3D, p_var.operator ::Transform3D());
|
||||
return mono_value_box(mono_domain_get(), CACHED_CLASS_RAW(Transform3D), &from);
|
||||
}
|
||||
case Variant::COLOR: {
|
||||
GDMonoMarshal::M_Color from = MARSHALLED_OUT(Color, p_var.operator ::Color());
|
||||
|
@ -620,7 +620,7 @@ size_t variant_get_managed_unboxed_size(const ManagedType &p_type) {
|
|||
RETURN_CHECK_FOR_STRUCT(Vector3i);
|
||||
RETURN_CHECK_FOR_STRUCT(Basis);
|
||||
RETURN_CHECK_FOR_STRUCT(Quat);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform3D);
|
||||
RETURN_CHECK_FOR_STRUCT(AABB);
|
||||
RETURN_CHECK_FOR_STRUCT(Color);
|
||||
RETURN_CHECK_FOR_STRUCT(Plane);
|
||||
|
@ -725,7 +725,7 @@ void *variant_to_managed_unboxed(const Variant &p_var, const ManagedType &p_type
|
|||
RETURN_CHECK_FOR_STRUCT(Vector3i);
|
||||
RETURN_CHECK_FOR_STRUCT(Basis);
|
||||
RETURN_CHECK_FOR_STRUCT(Quat);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform3D);
|
||||
RETURN_CHECK_FOR_STRUCT(AABB);
|
||||
RETURN_CHECK_FOR_STRUCT(Color);
|
||||
RETURN_CHECK_FOR_STRUCT(Plane);
|
||||
|
@ -881,7 +881,7 @@ MonoObject *variant_to_mono_object(const Variant &p_var, const ManagedType &p_ty
|
|||
RETURN_CHECK_FOR_STRUCT(Vector3i);
|
||||
RETURN_CHECK_FOR_STRUCT(Basis);
|
||||
RETURN_CHECK_FOR_STRUCT(Quat);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform);
|
||||
RETURN_CHECK_FOR_STRUCT(Transform3D);
|
||||
RETURN_CHECK_FOR_STRUCT(AABB);
|
||||
RETURN_CHECK_FOR_STRUCT(Color);
|
||||
RETURN_CHECK_FOR_STRUCT(Plane);
|
||||
|
|
|
@ -390,7 +390,7 @@ static Color _color_from_type(Variant::Type p_type, bool dark_theme = true) {
|
|||
case Variant::BASIS:
|
||||
color = Color(0.89, 0.93, 0.41);
|
||||
break;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
color = Color(0.96, 0.66, 0.43);
|
||||
break;
|
||||
|
||||
|
@ -496,7 +496,7 @@ static Color _color_from_type(Variant::Type p_type, bool dark_theme = true) {
|
|||
case Variant::BASIS:
|
||||
color = Color(0.7, 0.73, 0.1);
|
||||
break;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
color = Color(0.96, 0.56, 0.28);
|
||||
break;
|
||||
|
||||
|
|
|
@ -3921,7 +3921,7 @@ void register_visual_script_nodes() {
|
|||
VisualScriptLanguage::singleton->add_register_func("functions/deconstruct/" + Variant::get_type_name(Variant::Type::QUAT), create_node_deconst_typed<Variant::Type::QUAT>);
|
||||
VisualScriptLanguage::singleton->add_register_func("functions/deconstruct/" + Variant::get_type_name(Variant::Type::AABB), create_node_deconst_typed<Variant::Type::AABB>);
|
||||
VisualScriptLanguage::singleton->add_register_func("functions/deconstruct/" + Variant::get_type_name(Variant::Type::BASIS), create_node_deconst_typed<Variant::Type::BASIS>);
|
||||
VisualScriptLanguage::singleton->add_register_func("functions/deconstruct/" + Variant::get_type_name(Variant::Type::TRANSFORM), create_node_deconst_typed<Variant::Type::TRANSFORM>);
|
||||
VisualScriptLanguage::singleton->add_register_func("functions/deconstruct/" + Variant::get_type_name(Variant::Type::TRANSFORM3D), create_node_deconst_typed<Variant::Type::TRANSFORM3D>);
|
||||
VisualScriptLanguage::singleton->add_register_func("functions/compose_array", create_node_generic<VisualScriptComposeArray>);
|
||||
|
||||
for (int i = 1; i < Variant::VARIANT_MAX; i++) {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<DisplayString Condition="type == Variant::TRANSFORM2D">{_data._transform2d}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::AABB">{_data._aabb}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::BASIS">{_data._basis}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::TRANSFORM">{_data._transform}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::TRANSFORM3D">{_data._transform}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::STRING">{*(String *)_data._mem}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::VECTOR2">{*(Vector2 *)_data._mem}</DisplayString>
|
||||
<DisplayString Condition="type == Variant::RECT2">{*(Rect2 *)_data._mem}</DisplayString>
|
||||
|
@ -72,7 +72,7 @@
|
|||
<Item Name="[value]" Condition="type == Variant::TRANSFORM2D">_data._transform2d</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::AABB">_data._aabb</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::BASIS">_data._basis</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::TRANSFORM">_data._transform</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::TRANSFORM3D">_data._transform</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::STRING">*(String *)_data._mem</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::VECTOR2">*(Vector2 *)_data._mem</Item>
|
||||
<Item Name="[value]" Condition="type == Variant::RECT2">*(Rect2 *)_data._mem</Item>
|
||||
|
|
|
@ -756,16 +756,16 @@ void Node3D::_bind_methods() {
|
|||
BIND_CONSTANT(NOTIFICATION_EXIT_WORLD);
|
||||
BIND_CONSTANT(NOTIFICATION_VISIBILITY_CHANGED);
|
||||
|
||||
//ADD_PROPERTY( PropertyInfo(Variant::TRANSFORM,"transform/global",PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR ), "set_global_transform", "get_global_transform") ;
|
||||
//ADD_PROPERTY( PropertyInfo(Variant::TRANSFORM3D,"transform/global",PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR ), "set_global_transform", "get_global_transform") ;
|
||||
ADD_GROUP("Transform", "");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "global_transform", PROPERTY_HINT_NONE, "", 0), "set_global_transform", "get_global_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "global_transform", PROPERTY_HINT_NONE, "", 0), "set_global_transform", "get_global_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "translation", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_translation", "get_translation");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "rotation_degrees", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_rotation_degrees", "get_rotation_degrees");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "rotation", PROPERTY_HINT_NONE, "", 0), "set_rotation", "get_rotation");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "scale", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_scale", "get_scale");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "top_level"), "set_as_top_level", "is_set_as_top_level");
|
||||
ADD_GROUP("Matrix", "");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform", PROPERTY_HINT_NONE, ""), "set_transform", "get_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "transform", PROPERTY_HINT_NONE, ""), "set_transform", "get_transform");
|
||||
ADD_GROUP("Visibility", "");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "visible"), "set_visible", "is_visible");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "gizmo", PROPERTY_HINT_RESOURCE_TYPE, "Node3DGizmo", 0), "set_gizmo", "get_gizmo");
|
||||
|
|
|
@ -2053,11 +2053,11 @@ void PhysicalBone3D::_bind_methods() {
|
|||
|
||||
ADD_GROUP("Joint", "joint_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "joint_type", PROPERTY_HINT_ENUM, "None,PinJoint,ConeJoint,HingeJoint,SliderJoint,6DOFJoint"), "set_joint_type", "get_joint_type");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "joint_offset"), "set_joint_offset", "get_joint_offset");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "joint_offset"), "set_joint_offset", "get_joint_offset");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "joint_rotation_degrees", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_joint_rotation_degrees", "get_joint_rotation_degrees");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "joint_rotation", PROPERTY_HINT_NONE, "", 0), "set_joint_rotation", "get_joint_rotation");
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "body_offset"), "set_body_offset", "get_body_offset");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "body_offset"), "set_body_offset", "get_body_offset");
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "mass", PROPERTY_HINT_EXP_RANGE, "0.01,65535,0.01"), "set_mass", "get_mass");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "friction", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_friction", "get_friction");
|
||||
|
|
|
@ -135,9 +135,9 @@ void Skeleton3D::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||
String prep = "bones/" + itos(i) + "/";
|
||||
p_list->push_back(PropertyInfo(Variant::STRING, prep + "name", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::INT, prep + "parent", PROPERTY_HINT_RANGE, "-1," + itos(bones.size() - 1) + ",1", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, prep + "rest", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, prep + "rest", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::BOOL, prep + "enabled", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, prep + "pose", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, prep + "pose", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ void SkeletonIK3D::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::STRING_NAME, "root_bone"), "set_root_bone", "get_root_bone");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::STRING_NAME, "tip_bone"), "set_tip_bone", "get_tip_bone");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "interpolation", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_interpolation", "get_interpolation");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "target"), "set_target_transform", "get_target_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "target"), "set_target_transform", "get_target_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "override_tip_basis"), "set_override_tip_basis", "is_override_tip_basis");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_magnet"), "set_use_magnet", "is_using_magnet");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "magnet"), "set_magnet_position", "get_magnet_position");
|
||||
|
|
|
@ -571,7 +571,7 @@ Variant Tween::_run_equation(InterpolateData &p_data) {
|
|||
result = r;
|
||||
} break;
|
||||
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
// Get the transforms for the initial and delta values
|
||||
Transform3D i = initial_val;
|
||||
Transform3D d = delta_val;
|
||||
|
@ -1229,7 +1229,7 @@ bool Tween::_calc_delta_val(const Variant &p_initial_val, const Variant &p_final
|
|||
f.elements[2][2] - i.elements[2][2]);
|
||||
} break;
|
||||
|
||||
case Variant::TRANSFORM: {
|
||||
case Variant::TRANSFORM3D: {
|
||||
// Build a new transform which is the difference between the initial and final values
|
||||
Transform3D i = initial_val;
|
||||
Transform3D f = final_val;
|
||||
|
@ -1269,7 +1269,7 @@ bool Tween::_calc_delta_val(const Variant &p_initial_val, const Variant &p_final
|
|||
Variant::QUAT,
|
||||
Variant::AABB,
|
||||
Variant::BASIS,
|
||||
Variant::TRANSFORM,
|
||||
Variant::TRANSFORM3D,
|
||||
Variant::COLOR,
|
||||
};
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ void ShaderGlobalsOverride::_get_property_list(List<PropertyInfo> *p_list) const
|
|||
pinfo.type = Variant::TRANSFORM2D;
|
||||
} break;
|
||||
case RS::GLOBAL_VAR_TYPE_TRANSFORM: {
|
||||
pinfo.type = Variant::TRANSFORM;
|
||||
pinfo.type = Variant::TRANSFORM3D;
|
||||
} break;
|
||||
case RS::GLOBAL_VAR_TYPE_MAT4: {
|
||||
pinfo.type = Variant::PACKED_INT32_ARRAY;
|
||||
|
|
|
@ -97,10 +97,10 @@ void MeshLibrary::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||
String name = "item/" + itos(E->key()) + "/";
|
||||
p_list->push_back(PropertyInfo(Variant::STRING, name + "name"));
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, name + "mesh", PROPERTY_HINT_RESOURCE_TYPE, "Mesh"));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, name + "mesh_transform"));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, name + "mesh_transform"));
|
||||
p_list->push_back(PropertyInfo(Variant::ARRAY, name + "shapes"));
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, name + "navmesh", PROPERTY_HINT_RESOURCE_TYPE, "NavigationMesh"));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, name + "navmesh_transform"));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, name + "navmesh_transform"));
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, name + "preview", PROPERTY_HINT_RESOURCE_TYPE, "Texture2D", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_EDITOR_HELPER));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ void Skin::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||
for (int i = 0; i < get_bind_count(); i++) {
|
||||
p_list->push_back(PropertyInfo(Variant::STRING_NAME, "bind/" + itos(i) + "/name"));
|
||||
p_list->push_back(PropertyInfo(Variant::INT, "bind/" + itos(i) + "/bone", PROPERTY_HINT_RANGE, "0,16384,1,or_greater", get_bind_name(i) != StringName() ? PROPERTY_USAGE_NOEDITOR : PROPERTY_USAGE_DEFAULT));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, "bind/" + itos(i) + "/pose"));
|
||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, "bind/" + itos(i) + "/pose"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1412,7 +1412,7 @@ Error VisualShader::_write_node(Type type, StringBuilder &global_code, StringBui
|
|||
Vector3 val = defval;
|
||||
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
|
||||
code += "\tvec3 " + inputs[i] + " = " + vformat("vec3(%.5f, %.5f, %.5f);\n", val.x, val.y, val.z);
|
||||
} else if (defval.get_type() == Variant::TRANSFORM) {
|
||||
} else if (defval.get_type() == Variant::TRANSFORM3D) {
|
||||
Transform3D val = defval;
|
||||
val.basis.transpose();
|
||||
inputs[i] = "n_in" + itos(node) + "p" + itos(i);
|
||||
|
|
|
@ -402,7 +402,7 @@ void VisualShaderNodeTransformConstant::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_constant", "value"), &VisualShaderNodeTransformConstant::set_constant);
|
||||
ClassDB::bind_method(D_METHOD("get_constant"), &VisualShaderNodeTransformConstant::get_constant);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "constant"), "set_constant", "get_constant");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "constant"), "set_constant", "get_constant");
|
||||
}
|
||||
|
||||
VisualShaderNodeTransformConstant::VisualShaderNodeTransformConstant() {
|
||||
|
@ -4342,7 +4342,7 @@ void VisualShaderNodeTransformUniform::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_default_value"), &VisualShaderNodeTransformUniform::get_default_value);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "default_value_enabled"), "set_default_value_enabled", "is_default_value_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "default_value"), "set_default_value", "get_default_value");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "default_value"), "set_default_value", "get_default_value");
|
||||
}
|
||||
|
||||
bool VisualShaderNodeTransformUniform::is_show_prop_names() const {
|
||||
|
|
|
@ -128,7 +128,7 @@ void PhysicsDirectBodyState3D::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "angular_velocity"), "set_angular_velocity", "get_angular_velocity");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "linear_velocity"), "set_linear_velocity", "get_linear_velocity");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "sleeping"), "set_sleep_state", "is_sleeping");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "transform"), "set_transform", "get_transform");
|
||||
}
|
||||
|
||||
PhysicsDirectBodyState3D::PhysicsDirectBodyState3D() {}
|
||||
|
@ -242,7 +242,7 @@ void PhysicsShapeQueryParameters3D::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "margin", PROPERTY_HINT_RANGE, "0,100,0.01"), "set_margin", "get_margin");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "shape", PROPERTY_HINT_RESOURCE_TYPE, "Shape3D"), "set_shape", "get_shape");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "shape_rid"), "set_shape_rid", "get_shape_rid");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "transform"), "set_transform", "get_transform");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "collide_with_bodies"), "set_collide_with_bodies", "is_collide_with_bodies_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "collide_with_areas"), "set_collide_with_areas", "is_collide_with_areas_enabled");
|
||||
}
|
||||
|
|
|
@ -3040,7 +3040,7 @@ PropertyInfo ShaderLanguage::uniform_to_property_info(const ShaderNode::Uniform
|
|||
pi.type = Variant::BASIS;
|
||||
break;
|
||||
case ShaderLanguage::TYPE_MAT4:
|
||||
pi.type = Variant::TRANSFORM;
|
||||
pi.type = Variant::TRANSFORM3D;
|
||||
break;
|
||||
case ShaderLanguage::TYPE_SAMPLER2D:
|
||||
case ShaderLanguage::TYPE_ISAMPLER2D:
|
||||
|
|
|
@ -240,7 +240,7 @@ bool arg_default_value_is_assignable_to_type(const Context &p_context, const Var
|
|||
p_arg_type.name == p_context.names_cache.node_path_type;
|
||||
case Variant::NODE_PATH:
|
||||
return p_arg_type.name == p_context.names_cache.node_path_type;
|
||||
case Variant::TRANSFORM:
|
||||
case Variant::TRANSFORM3D:
|
||||
case Variant::TRANSFORM2D:
|
||||
case Variant::BASIS:
|
||||
case Variant::QUAT:
|
||||
|
|
Loading…
Reference in a new issue