From 5b807d3c0efb706ca7ad5aca0539802eff0d70dd Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 31 Jul 2004 15:47:38 +0000 Subject: [PATCH] add assertion --- panda/src/egg/eggVertex.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/egg/eggVertex.cxx b/panda/src/egg/eggVertex.cxx index bb86c1d961..e995c50382 100644 --- a/panda/src/egg/eggVertex.cxx +++ b/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); } ////////////////////////////////////////////////////////////////////