mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-17 13:25:41 -07:00
FIX:set "picking" true in pick render
jira: none Change-Id: I110f8fe4811280fbc59282752e06330f7f9dc665 (cherry picked from commit b9c3cb89ec0a880c125679fe6edce7a95ddc10e0)
This commit is contained in:
parent
1f93be6bd9
commit
06e6fc8568
1 changed files with 3 additions and 0 deletions
|
|
@ -6267,11 +6267,14 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||
|
||||
const bool is_active = vol->is_active;
|
||||
vol->is_active = true;
|
||||
vol->picking = true;
|
||||
|
||||
const Transform3d model_matrix = vol->world_matrix();
|
||||
shader->set_uniform("view_model_matrix", view_matrix * model_matrix);
|
||||
shader->set_uniform("projection_matrix", projection_matrix);
|
||||
vol->simple_render(shader, model_objects, extruder_colors);
|
||||
vol->is_active = is_active;
|
||||
vol->picking = false;
|
||||
}
|
||||
|
||||
//glsafe(::glDisableClientState(GL_NORMAL_ARRAY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue