mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Removed tech ENABLE_RENDER_PICKING_PASS
(cherry picked from commit prusa3d/PrusaSlicer@f45711e7e5)
This commit is contained in:
parent
1e7a91e2d5
commit
f0199159e7
3 changed files with 0 additions and 23 deletions
|
@ -12,8 +12,6 @@
|
||||||
#define ENABLE_RENDER_SELECTION_CENTER 0
|
#define ENABLE_RENDER_SELECTION_CENTER 0
|
||||||
// Shows an imgui dialog with camera related data
|
// Shows an imgui dialog with camera related data
|
||||||
#define ENABLE_CAMERA_STATISTICS 0
|
#define ENABLE_CAMERA_STATISTICS 0
|
||||||
// Render the picking pass instead of the main scene (use [T] key to toggle between regular rendering and picking pass only rendering)
|
|
||||||
#define ENABLE_RENDER_PICKING_PASS 0
|
|
||||||
// Enable extracting thumbnails from selected gcode and save them as png files
|
// Enable extracting thumbnails from selected gcode and save them as png files
|
||||||
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG 0
|
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG 0
|
||||||
// Disable synchronization of unselected instances
|
// Disable synchronization of unselected instances
|
||||||
|
|
|
@ -1125,9 +1125,6 @@ GLCanvas3D::GLCanvas3D(wxGLCanvas* canvas, Bed3D &bed)
|
||||||
, m_tab_down(false)
|
, m_tab_down(false)
|
||||||
, m_cursor_type(Standard)
|
, m_cursor_type(Standard)
|
||||||
, m_reload_delayed(false)
|
, m_reload_delayed(false)
|
||||||
#if ENABLE_RENDER_PICKING_PASS
|
|
||||||
, m_show_picking_texture(false)
|
|
||||||
#endif // ENABLE_RENDER_PICKING_PASS
|
|
||||||
, m_render_sla_auxiliaries(true)
|
, m_render_sla_auxiliaries(true)
|
||||||
, m_labels(*this)
|
, m_labels(*this)
|
||||||
, m_slope(m_volumes)
|
, m_slope(m_volumes)
|
||||||
|
@ -1833,9 +1830,6 @@ void GLCanvas3D::render(bool only_init)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_RENDER_PICKING_PASS
|
|
||||||
if (!m_picking_enabled || !m_show_picking_texture) {
|
|
||||||
#endif // ENABLE_RENDER_PICKING_PASS
|
|
||||||
// draw scene
|
// draw scene
|
||||||
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
|
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
|
||||||
_render_background();
|
_render_background();
|
||||||
|
@ -1900,9 +1894,6 @@ void GLCanvas3D::render(bool only_init)
|
||||||
// could be invalidated by the following gizmo render methods
|
// could be invalidated by the following gizmo render methods
|
||||||
_render_selection_sidebar_hints();
|
_render_selection_sidebar_hints();
|
||||||
_render_current_gizmo();
|
_render_current_gizmo();
|
||||||
#if ENABLE_RENDER_PICKING_PASS
|
|
||||||
}
|
|
||||||
#endif // ENABLE_RENDER_PICKING_PASS
|
|
||||||
|
|
||||||
#if ENABLE_RAYCAST_PICKING_DEBUG
|
#if ENABLE_RAYCAST_PICKING_DEBUG
|
||||||
if (m_picking_enabled && !m_mouse.dragging)
|
if (m_picking_enabled && !m_mouse.dragging)
|
||||||
|
@ -3192,14 +3183,6 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||||
//}
|
//}
|
||||||
//case 'O':
|
//case 'O':
|
||||||
//case 'o': { _update_camera_zoom(-1.0); break; }
|
//case 'o': { _update_camera_zoom(-1.0); break; }
|
||||||
#if ENABLE_RENDER_PICKING_PASS
|
|
||||||
case 'T':
|
|
||||||
case 't': {
|
|
||||||
m_show_picking_texture = !m_show_picking_texture;
|
|
||||||
m_dirty = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
#endif // ENABLE_RENDER_PICKING_PASS
|
|
||||||
//case 'Z':
|
//case 'Z':
|
||||||
//case 'z': {
|
//case 'z': {
|
||||||
// if (!m_selection.is_empty())
|
// if (!m_selection.is_empty())
|
||||||
|
|
|
@ -579,10 +579,6 @@ private:
|
||||||
|
|
||||||
bool m_reload_delayed;
|
bool m_reload_delayed;
|
||||||
|
|
||||||
#if ENABLE_RENDER_PICKING_PASS
|
|
||||||
bool m_show_picking_texture;
|
|
||||||
#endif // ENABLE_RENDER_PICKING_PASS
|
|
||||||
|
|
||||||
RenderStats m_render_stats;
|
RenderStats m_render_stats;
|
||||||
|
|
||||||
int m_imgui_undo_redo_hovered_pos{ -1 };
|
int m_imgui_undo_redo_hovered_pos{ -1 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue