From a95620c2db048253d616b725fff7a7042231ed69 Mon Sep 17 00:00:00 2001 From: treeform Date: Sat, 9 Jan 2010 16:35:09 +0000 Subject: [PATCH] fixed https://bugs.launchpad.net/panda3d/+bug/383969 , whas doing default_curve-> when default_curve is null, now just returns false --- panda/src/parametrics/parametricCurveCollection.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/parametrics/parametricCurveCollection.cxx b/panda/src/parametrics/parametricCurveCollection.cxx index 0ed6ade549..543001ee17 100644 --- a/panda/src/parametrics/parametricCurveCollection.cxx +++ b/panda/src/parametrics/parametricCurveCollection.cxx @@ -518,6 +518,10 @@ evaluate(float t, LVecBase3f &xyz, LVecBase3f &hpr) const { } } + if (default_curve == (ParametricCurve *)NULL) { + return false; + } + if (xyz_curve == (ParametricCurve *)NULL) { xyz_curve = default_curve; }