just removing this

This commit is contained in:
Isaac0-dev 2025-01-05 12:39:25 +10:00
parent dd27099b32
commit 16a483c68b
2 changed files with 18 additions and 22 deletions

View file

@ -767,12 +767,8 @@ def build_vec_types():
# Get
s += "static void smlua_get_%s(%s dest, int index) {\n" % (type_name.lower(), type_name)
optional_fields_list = list(vec_type.get("optional_fields_mapping", {}).keys())
for index, (lua_field, c_field) in enumerate(vec_type["fields_mapping"].items()):
s += " dest%s = smlua_get_%s_field(index, \"%s\")" % (c_field, vec_type["field_lua_type"], lua_field)
if 'optional_fields_mapping' in vec_type:
s += " || smlua_get_%s_field(index, \"%s\")" % (vec_type["field_lua_type"], optional_fields_list[index])
s += ";\n"
for lua_field, c_field in vec_type["fields_mapping"].items():
s += " dest%s = smlua_get_%s_field(index, \"%s\");\n" % (c_field, vec_type["field_lua_type"], lua_field)
s += "}\n\n"
# Push

View file

@ -120,22 +120,22 @@ static void smlua_push_vec4s(Vec4s src, int index) {
}
static void smlua_get_mat4(Mat4 dest, int index) {
dest[0][0] = smlua_get_number_field(index, "m00") || smlua_get_number_field(index, "a");
dest[0][1] = smlua_get_number_field(index, "m01") || smlua_get_number_field(index, "b");
dest[0][2] = smlua_get_number_field(index, "m02") || smlua_get_number_field(index, "c");
dest[0][3] = smlua_get_number_field(index, "m03") || smlua_get_number_field(index, "d");
dest[1][0] = smlua_get_number_field(index, "m10") || smlua_get_number_field(index, "e");
dest[1][1] = smlua_get_number_field(index, "m11") || smlua_get_number_field(index, "f");
dest[1][2] = smlua_get_number_field(index, "m12") || smlua_get_number_field(index, "g");
dest[1][3] = smlua_get_number_field(index, "m13") || smlua_get_number_field(index, "h");
dest[2][0] = smlua_get_number_field(index, "m20") || smlua_get_number_field(index, "i");
dest[2][1] = smlua_get_number_field(index, "m21") || smlua_get_number_field(index, "j");
dest[2][2] = smlua_get_number_field(index, "m22") || smlua_get_number_field(index, "k");
dest[2][3] = smlua_get_number_field(index, "m23") || smlua_get_number_field(index, "l");
dest[3][0] = smlua_get_number_field(index, "m30") || smlua_get_number_field(index, "m");
dest[3][1] = smlua_get_number_field(index, "m31") || smlua_get_number_field(index, "n");
dest[3][2] = smlua_get_number_field(index, "m32") || smlua_get_number_field(index, "o");
dest[3][3] = smlua_get_number_field(index, "m33") || smlua_get_number_field(index, "p");
dest[0][0] = smlua_get_number_field(index, "m00");
dest[0][1] = smlua_get_number_field(index, "m01");
dest[0][2] = smlua_get_number_field(index, "m02");
dest[0][3] = smlua_get_number_field(index, "m03");
dest[1][0] = smlua_get_number_field(index, "m10");
dest[1][1] = smlua_get_number_field(index, "m11");
dest[1][2] = smlua_get_number_field(index, "m12");
dest[1][3] = smlua_get_number_field(index, "m13");
dest[2][0] = smlua_get_number_field(index, "m20");
dest[2][1] = smlua_get_number_field(index, "m21");
dest[2][2] = smlua_get_number_field(index, "m22");
dest[2][3] = smlua_get_number_field(index, "m23");
dest[3][0] = smlua_get_number_field(index, "m30");
dest[3][1] = smlua_get_number_field(index, "m31");
dest[3][2] = smlua_get_number_field(index, "m32");
dest[3][3] = smlua_get_number_field(index, "m33");
}
static void smlua_push_mat4(Mat4 src, int index) {