mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Remove an useless condition test.
This commit is contained in:
@@ -1483,7 +1483,7 @@ void SpriteObjectEditor::OnAddVerticeClick(wxCommandEvent& event)
|
||||
void SpriteObjectEditor::OnmaskTreeSelectionChanged(wxTreeListEvent& event)
|
||||
{
|
||||
wxTreeListItem selectedItem = maskTree->GetSelection();
|
||||
if(polygonEditionHelper.IsMovingPoint())
|
||||
if(polygonEditionHelper.IsMovingPoint()) //Do not select a point when we are currently moving another point
|
||||
return;
|
||||
if ( maskTree->GetItemParent(selectedItem) == maskTree->GetRootItem() )
|
||||
{
|
||||
|
@@ -54,9 +54,6 @@ void PolygonEditionHelper::OnPaint(std::vector<Polygon2d> &mask, wxDC &dc, wxPoi
|
||||
|
||||
void PolygonEditionHelper::OnMouseLeftDown(std::vector<Polygon2d> &mask, wxMouseEvent &event, wxPoint offset)
|
||||
{
|
||||
if(movingPolygonPoint)
|
||||
return;
|
||||
|
||||
for (unsigned int i = 0;i<mask.size();++i)
|
||||
{
|
||||
for (unsigned int j = 0;j<mask[i].vertices.size();++j)
|
||||
|
Reference in New Issue
Block a user