Do not scale envelopes on ctrl+s

When using ctrl+s to test the current envelope it should not activate
the scale mode. This causes unexpected envelope changes on ctrl+s based
envelope fine tuning testing.
This commit is contained in:
ChillerDragon 2023-11-11 18:56:09 +01:00
parent de52ded86d
commit e090d73784

View file

@ -6749,7 +6749,7 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
static float s_MidpointY = 0.0f;
static std::vector<float> s_vInitialPositionsX;
static std::vector<float> s_vInitialPositionsY;
if(s_Operation == OP_NONE && Input()->KeyIsPressed(KEY_S) && !m_vSelectedEnvelopePoints.empty())
if(s_Operation == OP_NONE && Input()->KeyIsPressed(KEY_S) && !Input()->ModifierIsPressed() && !m_vSelectedEnvelopePoints.empty())
{
s_Operation = OP_SCALE;
s_ScaleFactorX = 1.0f;