diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-06-08 06:28:48 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-06-08 06:28:48 -0700 |
commit | eba7eb2d062c43cd83cb6972e4e05dc54d409582 (patch) | |
tree | 61b5da4999e2164d765830f5916c20ff7ea6b2bd /indra/newview/llface.cpp | |
parent | c78cd1aae63a7c7c0bf6a9c21380818aa9cd47b7 (diff) |
NORSPEC-233 fix default value and material apply logic errors
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-x | indra/newview/llface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 46d6a1a97f..3e503cb750 100755 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1655,8 +1655,8 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, if (mat && !do_bump) { - do_bump = mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_TEXCOORD1) || - mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_TEXCOORD2); + do_bump = mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_TEXCOORD1) + || mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_TEXCOORD2); } bool do_tex_mat = tex_mode && mTextureMatrix; @@ -1780,7 +1780,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, std::vector<LLVector2> bump_tc; - if (mat) + if (mat && !mat->getNormalID().isNull()) { //writing out normal and specular texture coordinates, not bump offsets do_bump = false; } |