From 3f21597b6cc2bbf93efee3bea20c43ebc2b17bee Mon Sep 17 00:00:00 2001 From: marmare314 <49279081+Marmare314@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:24:16 +0200 Subject: [PATCH] check if quadpoint is selected and not if quad is selected fixes #7199 (partially?) --- src/game/editor/popups.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp index e99d24c6d..a18151b26 100644 --- a/src/game/editor/popups.cpp +++ b/src/game/editor/popups.cpp @@ -1257,20 +1257,20 @@ CUI::EPopupMenuFunctionResult CEditor::PopupPoint(void *pContext, CUIRect View, if(Prop == PROP_POS_X) { for(int v = 0; v < 4; v++) - if(pEditor->IsQuadSelected(v)) + if(pEditor->IsQuadPointSelected(v)) pQuad->m_aPoints[v].x = i2fx(fx2i(pQuad->m_aPoints[v].x) + NewVal - X); } else if(Prop == PROP_POS_Y) { for(int v = 0; v < 4; v++) - if(pEditor->IsQuadSelected(v)) + if(pEditor->IsQuadPointSelected(v)) pQuad->m_aPoints[v].y = i2fx(fx2i(pQuad->m_aPoints[v].y) + NewVal - Y); } else if(Prop == PROP_COLOR) { for(int v = 0; v < 4; v++) { - if(pEditor->IsQuadSelected(v)) + if(pEditor->IsQuadPointSelected(v)) { pQuad->m_aColors[v].r = (NewVal >> 24) & 0xff; pQuad->m_aColors[v].g = (NewVal >> 16) & 0xff; @@ -1282,13 +1282,13 @@ CUI::EPopupMenuFunctionResult CEditor::PopupPoint(void *pContext, CUIRect View, else if(Prop == PROP_TEX_U) { for(int v = 0; v < 4; v++) - if(pEditor->IsQuadSelected(v)) + if(pEditor->IsQuadPointSelected(v)) pQuad->m_aTexcoords[v].x = f2fx(fx2f(pQuad->m_aTexcoords[v].x) + (NewVal - TextureU) / 1024.0f); } else if(Prop == PROP_TEX_V) { for(int v = 0; v < 4; v++) - if(pEditor->IsQuadSelected(v)) + if(pEditor->IsQuadPointSelected(v)) pQuad->m_aTexcoords[v].y = f2fx(fx2f(pQuad->m_aTexcoords[v].y) + (NewVal - TextureV) / 1024.0f); } }