Cut Improvements/Bug Fixing
* Context menu: Suppress "Simplify model" for cut object * CutGizmo: * Disable gizmo for dowel object * Invalidate cut plane position after update of Bounding box * Suppress Frustum style for connectors with Dowel type * Rectangle selection: Fixed processing on LeftUp * Selection on Canvas: Suppress to move NEGATIVE_VOLUME if it's a connector * Model:cut: Fixed a bug in add_cut_volume(). Cut info wasn't copied to the new volume
This commit is contained in:
parent
5922bf2910
commit
3a21f156c0
6 changed files with 45 additions and 9 deletions
|
@ -3529,7 +3529,8 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||
const int volume_idx = get_first_hover_volume_idx();
|
||||
BoundingBoxf3 volume_bbox = m_volumes.volumes[volume_idx]->transformed_bounding_box();
|
||||
volume_bbox.offset(1.0);
|
||||
if ((!any_gizmo_active || !evt.CmdDown()) && volume_bbox.contains(m_mouse.scene_position)) {
|
||||
const bool is_cut_connector_selected = m_selection.is_any_connector();
|
||||
if ((!any_gizmo_active || !evt.CmdDown()) && volume_bbox.contains(m_mouse.scene_position) && !is_cut_connector_selected) {
|
||||
m_volumes.volumes[volume_idx]->hover = GLVolume::HS_None;
|
||||
// The dragging operation is initiated.
|
||||
m_mouse.drag.move_volume_idx = volume_idx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue