Browse Source

add assertion

David Rose 21 years ago
parent
commit
5b807d3c0e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/egg/eggVertex.cxx

+ 2 - 1
panda/src/egg/eggVertex.cxx

@@ -152,11 +152,12 @@ set_uv(const string &name, const TexCoordd &uv) {
 
   if (uv_obj.is_null()) {
     uv_obj = new EggVertexUV(name, uv);
-
   } else {
     uv_obj = new EggVertexUV(*uv_obj);
     uv_obj->set_uv(uv);
   }
+
+  nassertv(get_uv(name) == uv);
 }
 
 ////////////////////////////////////////////////////////////////////