mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-29 05:03:13 +08:00
FIX:set "picking" true in pick render
jira: none Change-Id: I110f8fe4811280fbc59282752e06330f7f9dc665
This commit is contained in:
parent
ef7c8efdf6
commit
b9c3cb89ec
@ -6491,6 +6491,7 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||||||
|
|
||||||
bool is_active = vol->is_active;
|
bool is_active = vol->is_active;
|
||||||
vol->is_active = true;
|
vol->is_active = true;
|
||||||
|
vol->picking = true;
|
||||||
|
|
||||||
const Transform3d matrix = view_matrix * vol->world_matrix();
|
const Transform3d matrix = view_matrix * vol->world_matrix();
|
||||||
shader->set_uniform("view_model_matrix", matrix);
|
shader->set_uniform("view_model_matrix", matrix);
|
||||||
@ -6499,6 +6500,7 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||||||
shader->set_uniform("volume_world_matrix", vol->world_matrix());
|
shader->set_uniform("volume_world_matrix", vol->world_matrix());
|
||||||
vol->simple_render(shader, model_objects, extruder_colors);
|
vol->simple_render(shader, model_objects, extruder_colors);
|
||||||
vol->is_active = is_active;
|
vol->is_active = is_active;
|
||||||
|
vol->picking = false;
|
||||||
}
|
}
|
||||||
glsafe(::glEnable(GL_CULL_FACE));
|
glsafe(::glEnable(GL_CULL_FACE));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user