Commit 9c3298c1 authored by Jan Möbius's avatar Jan Möbius

Added braces to fix clang warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15779 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 92d635e7
......@@ -369,19 +369,21 @@ void TranslationManipulatorNode::updateTargetColors ()
return;
}
if (mode_ != Resize)
for (unsigned int i = 0; i < 3; i++)
if (element_[i + XRing].clicked_)
{
element_[i + XRing].active_target_color_ = colors[i+1][2];
element_[i + XRing].inactive_target_color_ = colors[i+1][5];
return;
} else if (element_[i + XRing].over_)
{
element_[i + XRing].active_target_color_ = colors[i+1][1];
element_[i + XRing].inactive_target_color_ = colors[i+1][4];
return;
if (mode_ != Resize) {
for (unsigned int i = 0; i < 3; i++) {
if (element_[i + XRing].clicked_)
{
element_[i + XRing].active_target_color_ = colors[i+1][2];
element_[i + XRing].inactive_target_color_ = colors[i+1][5];
return;
} else if (element_[i + XRing].over_)
{
element_[i + XRing].active_target_color_ = colors[i+1][1];
element_[i + XRing].inactive_target_color_ = colors[i+1][4];
return;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment