diff options
| author | Dave Parks <davep@lindenlab.com> | 2023-03-10 10:53:00 -0600 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2023-03-10 10:53:00 -0600 |
| commit | 2db036ba1758d36c28b9a7e5c32f732787ff8c44 (patch) | |
| tree | da61209a679b689cde3bc3f86f325ad7a200a055 /indra/newview/llvovolume.cpp | |
| parent | 25ede8638209fac8dde5b71bece4bc1dfa30ea16 (diff) | |
| parent | 97b5f07edd077e9b451e874275e9ce49c134f841 (diff) | |
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llvovolume.cpp')
| -rw-r--r-- | indra/newview/llvovolume.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index a96701003b..49939cbbf0 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -670,6 +670,21 @@ void LLVOVolume::animateTextures() } else { + if (!(result & LLViewerTextureAnim::ROTATE)) + { + rot = 0.0f; + } + if (!(result & LLViewerTextureAnim::TRANSLATE)) + { + off_s = 0.0f; + off_t = 0.0f; + } + if (!(result & LLViewerTextureAnim::SCALE)) + { + scale_s = 1.0f; + scale_t = 1.0f; + } + // For PBR materials, use Blinn-Phong rotation as hint for // translation direction. In a Blinn-Phong material, the // translation direction would be a byproduct the texture |
