Rename Variant TRANSFORM to TRANSFORM3D
Also _transform to _transform3d
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user