Cut WIP:
* ObjectList & Selection: Show Connectors in the Scene, when CutConnectors Item is selected * ObjectList: refactoring: extract the adding of volumes to the add_volumes_to_object_in_list() * If some connector is selected on 3dScene -> select all connectors of this object * GLGizmoScale3D : check if grabber is enabled, when do rendering + GLGizmoCut: refactoring : split render_cut_plane_grabbers to several functions
This commit is contained in:
parent
d1c871758b
commit
a8440db5ec
10 changed files with 268 additions and 232 deletions
|
@ -81,12 +81,7 @@ std::string GLGizmoMove3D::on_get_name() const
|
|||
bool GLGizmoMove3D::on_is_activable() const
|
||||
{
|
||||
const Selection& selection = m_parent.get_selection();
|
||||
if (selection.is_any_volume() || selection.is_any_modifier()) {
|
||||
if (int obj_idx = selection.get_object_idx(); obj_idx >= 0)
|
||||
return !m_parent.get_model()->objects[obj_idx]->is_cut();
|
||||
}
|
||||
|
||||
return !selection.is_empty();
|
||||
return !selection.is_any_cut_volume() && !selection.is_any_connector() && !selection.is_empty();
|
||||
}
|
||||
|
||||
void GLGizmoMove3D::on_start_dragging()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue