--User changes

-Draw selection circles around all selected xforms plus the current one.

--Bug fixes
 -Add control key as a modifier to increase the amount a spinbox is changed when using right mouse drag to edit. Previously only observed shift key to decrease the value.
 -Change the copy/paste selected xforms shortcuts to be Ctrl+X+C and Ctrl+X+V.

--Code changes
 -Add function Fractorium::IsXformSelected() to determine if an xform has been selected with the checkboxes.
This commit is contained in:
mfeemster
2016-02-20 18:44:52 -08:00
parent f1dd20b0ca
commit 66f8f1e50c
12 changed files with 39 additions and 101 deletions

View File

@ -307,7 +307,7 @@ void GLEmberController<T>::DrawAffines(bool pre, bool post)
for (size_t i = 0; i < ember->TotalXformCount(); i++)
{
auto xform = ember->GetTotalXform(i);
bool selected = dragging ? (m_SelectedXform == xform) : (m_HoverXform == xform);
bool selected = m_Fractorium->IsXformSelected(i) || (dragging ? (m_SelectedXform == xform) : (m_HoverXform == xform));
DrawAffine(xform, true, selected);
}
}
@ -321,7 +321,7 @@ void GLEmberController<T>::DrawAffines(bool pre, bool post)
for (size_t i = 0; i < ember->TotalXformCount(); i++)
{
auto xform = ember->GetTotalXform(i);
bool selected = dragging ? (m_SelectedXform == xform) : (m_HoverXform == xform);
bool selected = m_Fractorium->IsXformSelected(i) || (dragging ? (m_SelectedXform == xform) : (m_HoverXform == xform));
DrawAffine(xform, false, selected);
}
}