mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
parent
de52ded86d
commit
e090d73784
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue