mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
library: Copy all material with NE_MaterialTexClone()
Previously it only copied the texture, not the material properties or the palette.
This commit is contained in:
parent
65bdac84a5
commit
ae650b6bab
@ -406,7 +406,7 @@ void NE_MaterialTexClone(NE_Material *source, NE_Material *dest)
|
||||
"No texture asigned to source material");
|
||||
// Increase count of materials using this texture
|
||||
NE_Texture[source->texindex].uses++;
|
||||
dest->texindex = source->texindex;
|
||||
memcpy(dest, source, sizeof(NE_Material));
|
||||
}
|
||||
|
||||
void NE_MaterialTexSetPal(NE_Material *tex, NE_Palette *pal)
|
||||
|
Loading…
Reference in New Issue
Block a user