diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-15 13:13:18 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:43 +0200 |
commit | 01ae0daea501f47ec56a8368e530cb4176fc44cd (patch) | |
tree | e96893df69b86481dcc6d36d613d4b67e72c205f /src/nodedef.cpp | |
parent | 45fc45a49e61c61646b9997840e92f25bb8ccde9 (diff) | |
download | minetest-01ae0daea501f47ec56a8368e530cb4176fc44cd.tar.gz minetest-01ae0daea501f47ec56a8368e530cb4176fc44cd.tar.bz2 minetest-01ae0daea501f47ec56a8368e530cb4176fc44cd.zip |
Properly update textures in node definitions
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 7b723e958..d589c5ec9 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -174,8 +174,13 @@ public: ContentFeatures *f = &m_content_features[i]; for(u16 j=0; j<6; j++) tsrc->updateAP(f->tiles[j].texture); - if(f->special_atlas) + if(f->special_atlas){ tsrc->updateAP(*(f->special_atlas)); + if(f->special_material) + f->special_material->setTexture(0, f->special_atlas->atlas); + if(f->special_material2) + f->special_material2->setTexture(0, f->special_atlas->atlas); + } } #endif } |