浏览代码

Subdivision: fix compiler warning from debug check.

Kim Kulling 10 年之前
父节点
当前提交
9708a4db93
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      code/Subdivision.cpp

+ 5 - 1
code/Subdivision.cpp

@@ -399,10 +399,14 @@ void CatmullClarkSubdivider::InternSubdivide (
                     bool haveit = false;
                     for (unsigned int i = 0; i < f.mNumIndices; ++i) {
                         if (maptbl[FLATTEN_VERTEX_IDX(n,f.mIndices[i])]==(unsigned int)t) {
-                            haveit = true; break;
+                            haveit = true;
+                            break;
                         }
                     }
                     ai_assert(haveit);
+                    if (!haveit) {
+                        DefaultLogger::get()->debug("Catmull-Clark Subdivider: Index not used");
+                    }
                     break;
                 }
             }