...also do it for images.

develop
Japa 2018-02-21 22:31:39 +05:30
parent 8c20d178b5
commit 778a1667dc
1 changed files with 7 additions and 0 deletions

@ -99,6 +99,13 @@ void CopyImage(const df::art_image * image, ArtImage * netImage)
it->set_mat_type(item->item_type); it->set_mat_type(item->item_type);
it->set_mat_index(item->item_subtype); it->set_mat_index(item->item_subtype);
netElement->set_id(item->item_id); netElement->set_id(item->item_id);
switch (item->item_type)
{
case item_type::PLANT:
it->set_mat_index(item->mat_index);
default:
break;
}
auto mat = netElement->mutable_material(); auto mat = netElement->mutable_material();
mat->set_mat_type(item->mat_type); mat->set_mat_type(item->mat_type);
mat->set_mat_index(item->mat_index); mat->set_mat_index(item->mat_index);