mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 18:21:51 +08:00
Tech ENABLE_RAYCAST_PICKING - Fixed wrong scope for ENABLE_RAYCAST_PICKING_DEBUG in GLCanvas3D::_picking_pass() causing the 3d scene to freeze while rotating it
This commit is contained in:
parent
39b1222b22
commit
c991798740
@ -5389,15 +5389,15 @@ void GLCanvas3D::_refresh_if_shown_on_screen()
|
|||||||
#if ENABLE_RAYCAST_PICKING
|
#if ENABLE_RAYCAST_PICKING
|
||||||
void GLCanvas3D::_picking_pass()
|
void GLCanvas3D::_picking_pass()
|
||||||
{
|
{
|
||||||
#if ENABLE_RAYCAST_PICKING_DEBUG
|
|
||||||
if (!m_picking_enabled || m_mouse.dragging || m_mouse.position == Vec2d(DBL_MAX, DBL_MAX) || m_gizmos.is_dragging()) {
|
if (!m_picking_enabled || m_mouse.dragging || m_mouse.position == Vec2d(DBL_MAX, DBL_MAX) || m_gizmos.is_dragging()) {
|
||||||
|
#if ENABLE_RAYCAST_PICKING_DEBUG
|
||||||
ImGuiWrapper& imgui = *wxGetApp().imgui();
|
ImGuiWrapper& imgui = *wxGetApp().imgui();
|
||||||
imgui.begin(std::string("Hit result"), ImGuiWindowFlags_AlwaysAutoResize);
|
imgui.begin(std::string("Hit result"), ImGuiWindowFlags_AlwaysAutoResize);
|
||||||
imgui.text("Picking disabled");
|
imgui.text("Picking disabled");
|
||||||
imgui.end();
|
imgui.end();
|
||||||
|
#endif // ENABLE_RAYCAST_PICKING_DEBUG
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif // ENABLE_RAYCAST_PICKING_DEBUG
|
|
||||||
|
|
||||||
m_hover_volume_idxs.clear();
|
m_hover_volume_idxs.clear();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user