Remove an useless condition test.

This commit is contained in:
Victor Levasseur
2014-09-28 12:58:56 +02:00
parent 7704bbb788
commit 58d825c86e
2 changed files with 1 additions and 4 deletions

View File

@@ -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() )
{

View File

@@ -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)