From 01ae0daea501f47ec56a8368e530cb4176fc44cd Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 15 Nov 2011 13:13:18 +0200 Subject: Properly update textures in node definitions --- src/nodedef.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/nodedef.cpp') 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 } -- cgit v1.2.3