Mercurial > hg > forks > gldragon
diff dmmodel.cpp @ 36:d640f2a34031
Only scale/translate/rotate the model if those attributes have been set in the scenefile.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Dec 2019 23:12:04 +0200 |
parents | 2e85c180afdf |
children | 9909014498f0 |
line wrap: on
line diff
--- a/dmmodel.cpp Tue Nov 26 07:22:35 2019 +0200 +++ b/dmmodel.cpp Sun Dec 01 23:12:04 2019 +0200 @@ -709,13 +709,22 @@ return false; if (key == "translate") + { model->translate = vec; + model->translateSet = true; + } else if (key == "rotate") + { model->rotate = vec; + model->rotateSet = true; + } else if (key == "scale") + { model->scale = vec; + model->scaleSet = true; + } } else if (info.state == 1 && key == "specular")