From 179d0c7e0c0a6f4ba4e4e3a7ab4776f94cdccc95 Mon Sep 17 00:00:00 2001 From: Greg Wiatroski Date: Sat, 28 Aug 2004 20:55:04 +0000 Subject: [PATCH] added comment --- panda/src/pgraph/nodePath.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index 5c5e20fcd2..16650d2714 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -916,6 +916,7 @@ get_hpr() const { nassertr_always(!is_empty(), LVecBase3f(0.0f, 0.0f, 0.0f)); CPT(TransformState) transform = get_transform(); nassertr(transform->has_hpr(), LVecBase3f(0.0f, 0.0f, 0.0f)); + // now that we are range checking fields we must clamp this LVecBase3f hpr = transform->get_hpr(); hpr[0] = fmod(hpr[0], 360); hpr[1] = fmod(hpr[1], 360);