Fix glmodel initialization
This commit is contained in:
parent
5e48ee7c83
commit
8a44a754ca
@ -628,19 +628,17 @@ void GLGizmoSimplify::init_model()
|
|||||||
// set actual triangle count
|
// set actual triangle count
|
||||||
m_triangle_count += its.indices.size();
|
m_triangle_count += its.indices.size();
|
||||||
|
|
||||||
auto item = std::make_pair(
|
m_glmodels.emplace_back(
|
||||||
GLVolume::CompositeID(cid.object_id, cid.volume_id, cid.instance_id), // copy
|
GLVolume::CompositeID(cid.object_id, cid.volume_id, cid.instance_id), // copy
|
||||||
GLModel());
|
GLModel());
|
||||||
|
GLModel &glmodel = m_glmodels.back().second;
|
||||||
GLModel &glmodel = item.second;
|
//glmodel.reset();
|
||||||
glmodel.init_from(its);
|
glmodel.init_from(its);
|
||||||
glmodel.set_color(-1,selected_volume->color);
|
glmodel.set_color(-1,selected_volume->color);
|
||||||
|
|
||||||
m_parent.toggle_model_objects_visibility(false, info->model_object(),
|
m_parent.toggle_model_objects_visibility(false, info->model_object(),
|
||||||
info->get_active_instance(),
|
info->get_active_instance(),
|
||||||
volume);
|
volume);
|
||||||
|
|
||||||
m_glmodels.emplace_back(item);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user