summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp7
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
}