projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c7c5d5
)
Fix multiple texture support for animated meshnodes
author
stujones11
<stujones11@server.fake>
Tue, 11 Jun 2013 20:40:59 +0000
(21:40 +0100)
committer
PilzAdam
<pilzadam@minetest.net>
Tue, 9 Jul 2013 22:22:21 +0000
(
00:22
+0200)
src/content_cao.cpp
patch
|
blob
|
history
diff --git
a/src/content_cao.cpp
b/src/content_cao.cpp
index ece284343eb05b5df780d79d639dab1b241fc805..7c76992429472dc1917be1f90c7a5b36be29c1da 100644
(file)
--- a/
src/content_cao.cpp
+++ b/
src/content_cao.cpp
@@
-1308,8
+1308,8
@@
public:
}
// Set material flags and texture
- m_animated_meshnode->setMaterialTexture(i, texture);
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
+ material.TextureLayer[0].Texture = texture;
material.setFlag(video::EMF_LIGHTING, false);
material.setFlag(video::EMF_BILINEAR_FILTER, false);