summaryrefslogtreecommitdiffhomepage
path: root/Magic2/UVMapView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Magic2/UVMapView.cpp')
-rw-r--r--Magic2/UVMapView.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Magic2/UVMapView.cpp b/Magic2/UVMapView.cpp
index 9e5ac98..673745f 100644
--- a/Magic2/UVMapView.cpp
+++ b/Magic2/UVMapView.cpp
@@ -380,8 +380,10 @@ UVMapView::SelectInverse()
bool contains = false;
auto svi = selverts.begin();
for (; svi != selverts.end(); ++svi) {
- if (*svi == value) contains = true;
- break;
+ if (*svi == value) {
+ contains = true;
+ break;
+ }
}
if (contains)
@@ -401,7 +403,8 @@ UVMapView::IsSelected(Poly* poly, WORD v)
bool contains = false;
for (auto svi = selverts.begin(); svi != selverts.end(); ++svi) {
- return true;
+ if (*svi == value)
+ return true;
}
return false;