ApplyTransToModels matching

This commit is contained in:
Dethrace Labs 2026-01-26 23:00:33 +13:00
parent 3f3516565c
commit 895e36d148
1 changed files with 9 additions and 10 deletions

View File

@ -1808,18 +1808,17 @@ br_uint_32 ApplyTransToModels(br_actor* pActor, br_matrix34* pMatrix, void* pArg
int i;
br_vector3 temp_point;
if (pActor->identifier == NULL || pActor->identifier[0] == '&') {
return 0;
}
if (pActor->model != NULL) {
for (i = 0; i < pActor->model->nvertices; i++) {
BrVector3Copy(&temp_point, &pActor->model->vertices[i].p);
BrMatrix34ApplyP(&pActor->model->vertices[i].p, &temp_point, pMatrix);
if (pActor->identifier != NULL && pActor->identifier[0] != '&') {
if (pActor->model != NULL) {
for (i = 0; i < pActor->model->nvertices; i++) {
temp_point = pActor->model->vertices[i].p;
BrMatrix34ApplyP(&pActor->model->vertices[i].p, &temp_point, pMatrix);
}
BrModelUpdate(pActor->model, BR_MATU_ALL);
}
BrModelUpdate(pActor->model, BR_MATU_ALL);
BrMatrix34Identity(&pActor->t.t.mat);
pActor->t.type = BR_TRANSFORM_IDENTITY;
}
BrMatrix34Identity(&pActor->t.t.mat);
pActor->t.type = BR_TRANSFORM_IDENTITY;
return 0;
}