Improve readability
This commit is contained in:
parent
74f0af7a07
commit
b87a001ac5
@ -268,9 +268,9 @@ bool normalize_object(HE_obj *obj)
|
|||||||
scale_factor = get_normalized_scale_factor(obj);
|
scale_factor = get_normalized_scale_factor(obj);
|
||||||
|
|
||||||
for (uint32_t i = 0; i < obj->vc; i++) {
|
for (uint32_t i = 0; i < obj->vc; i++) {
|
||||||
obj->vertices[i].vec->x = obj->vertices[i].vec->x * scale_factor;
|
obj->vertices[i].vec->x *= scale_factor;
|
||||||
obj->vertices[i].vec->y = obj->vertices[i].vec->y * scale_factor;
|
obj->vertices[i].vec->y *= scale_factor;
|
||||||
obj->vertices[i].vec->z = obj->vertices[i].vec->z * scale_factor;
|
obj->vertices[i].vec->z *= scale_factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint32_t i = 0; i < obj->bzc; i++) {
|
for (uint32_t i = 0; i < obj->bzc; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user