aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorRob Blanckaert <rob@withpiper.com>2017-10-22 11:41:57 -0700
committersfan5 <sfan5@live.de>2017-12-25 15:00:25 +0100
commit787cd15c14b65f50b06c6b9ccecf28e937318430 (patch)
treee1af40e2921627460a6cb0b8ce28f42925531659 /src/content_cao.cpp
parent8037eda42c89dbc81e99199c2ae49309a9439ac3 (diff)
downloadhax-minetest-server-787cd15c14b65f50b06c6b9ccecf28e937318430.tar.gz
hax-minetest-server-787cd15c14b65f50b06c6b9ccecf28e937318430.zip
- Clear colors when reading property info.
- Set vertex colors on upright_sprites.
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 9d87c733e..a8b4ae2e1 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1134,10 +1134,12 @@ void GenericCAO::updateTextures(std::string mod)
buf->getMaterial().AmbientColor = m_prop.colors[1];
buf->getMaterial().DiffuseColor = m_prop.colors[1];
buf->getMaterial().SpecularColor = m_prop.colors[1];
+ setMeshColor(mesh, m_prop.colors[1]);
} else if (!m_prop.colors.empty()) {
buf->getMaterial().AmbientColor = m_prop.colors[0];
buf->getMaterial().DiffuseColor = m_prop.colors[0];
buf->getMaterial().SpecularColor = m_prop.colors[0];
+ setMeshColor(mesh, m_prop.colors[0]);
}
buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, use_trilinear_filter);