File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1134,10 +1134,12 @@ void GenericCAO::updateTextures(std::string mod)
1134
1134
buf->getMaterial ().AmbientColor = m_prop.colors [1 ];
1135
1135
buf->getMaterial ().DiffuseColor = m_prop.colors [1 ];
1136
1136
buf->getMaterial ().SpecularColor = m_prop.colors [1 ];
1137
+ setMeshColor (mesh, m_prop.colors [1 ]);
1137
1138
} else if (!m_prop.colors .empty ()) {
1138
1139
buf->getMaterial ().AmbientColor = m_prop.colors [0 ];
1139
1140
buf->getMaterial ().DiffuseColor = m_prop.colors [0 ];
1140
1141
buf->getMaterial ().SpecularColor = m_prop.colors [0 ];
1142
+ setMeshColor (mesh, m_prop.colors [0 ]);
1141
1143
}
1142
1144
1143
1145
buf->getMaterial ().setFlag (video::EMF_TRILINEAR_FILTER, use_trilinear_filter);
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ void ObjectProperties::deSerialize(std::istream &is)
145
145
makes_footstep_sound = readU8 (is);
146
146
automatic_rotate = readF1000 (is);
147
147
mesh = deSerializeString (is);
148
+ colors.clear ();
148
149
u32 color_count = readU16 (is);
149
150
for (u32 i = 0 ; i < color_count; i++){
150
151
colors.push_back (readARGB8 (is));
You can’t perform that action at this time.
0 commit comments