diff options
author | Rob Blanckaert <rob@withpiper.com> | 2017-10-22 11:41:57 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-12-25 15:00:25 +0100 |
commit | 787cd15c14b65f50b06c6b9ccecf28e937318430 (patch) | |
tree | e1af40e2921627460a6cb0b8ce28f42925531659 /src/object_properties.cpp | |
parent | 8037eda42c89dbc81e99199c2ae49309a9439ac3 (diff) | |
download | minetest-787cd15c14b65f50b06c6b9ccecf28e937318430.tar.gz minetest-787cd15c14b65f50b06c6b9ccecf28e937318430.tar.bz2 minetest-787cd15c14b65f50b06c6b9ccecf28e937318430.zip |
- Clear colors when reading property info.
- Set vertex colors on upright_sprites.
Diffstat (limited to 'src/object_properties.cpp')
-rw-r--r-- | src/object_properties.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object_properties.cpp b/src/object_properties.cpp index 26a19a082..e330bc24a 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -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)); |