mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
added better texture moving in the editor by nsinreal. Closes #372
This commit is contained in:
parent
1306b62ce2
commit
7487a22956
|
@ -1026,9 +1026,15 @@ void CEditor::DoQuadPoint(CQuad *q, int QuadIndex, int v)
|
|||
{
|
||||
for(int m = 0; m < 4; m++)
|
||||
if(m_SelectedPoints&(1<<m))
|
||||
{
|
||||
q->m_aTexcoords[m].x += f2fx(dx*0.001f);
|
||||
q->m_aTexcoords[m].y += f2fx(dy*0.001f);
|
||||
{
|
||||
// 0,2;1,3 - line x
|
||||
// 0,1;2,3 - line y
|
||||
|
||||
q->m_aTexcoords[m].x += f2fx(dx*0.001f);
|
||||
q->m_aTexcoords[(m+2)%4].x += f2fx(dx*0.001f);
|
||||
|
||||
q->m_aTexcoords[m].y += f2fx(dy*0.001f);
|
||||
q->m_aTexcoords[m^1].y += f2fx(dy*0.001f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue