mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-30 12:43:49 +01:00
- Clear colors when reading property info.
- Set vertex colors on upright_sprites.
This commit is contained in:
@@ -145,6 +145,7 @@ void ObjectProperties::deSerialize(std::istream &is)
|
||||
makes_footstep_sound = readU8(is);
|
||||
automatic_rotate = readF1000(is);
|
||||
mesh = deSerializeString(is);
|
||||
colors.clear();
|
||||
u32 color_count = readU16(is);
|
||||
for (u32 i = 0; i < color_count; i++){
|
||||
colors.push_back(readARGB8(is));
|
||||
|
||||
Reference in New Issue
Block a user