fixed https://bugs.launchpad.net/panda3d/+bug/383969 , whas doing default_curve-> when default_curve is null, now just returns false

This commit is contained in:
treeform 2010-01-09 16:35:09 +00:00
parent 0bf8946512
commit a95620c2db

View File

@ -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;
}