mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Properly update textures in node definitions
This commit is contained in:
parent
45fc45a49e
commit
01ae0daea5
7 changed files with 301 additions and 192 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue