| 87 | namespace |
| 88 | { |
| 89 | void refresh_model(_zUI& ui) |
| 90 | { |
| 91 | if (ui.model) |
| 92 | { |
| 93 | zUIAsset* sasset; |
| 94 | xMat3x3* mat; |
| 95 | xMat3x3 pmat, smat; |
| 96 | |
| 97 | ui.bound.mat = (xMat4x3*)ui.model->Mat; |
| 98 | ui.bound.mat->pos = 0.0f; |
| 99 | |
| 100 | sasset = ui.sasset; |
| 101 | mat = (xMat3x3*)ui.model->Mat; |
| 102 | |
| 103 | xMat3x3Euler(&pmat, &sasset->ang); |
| 104 | xMat3x3Scale(&smat, &sasset->scale); |
| 105 | xMat3x3Mul(mat, &pmat, &smat); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void init_tweaks() |
| 110 | { |
no test coverage detected