mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
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:
parent
0bf8946512
commit
a95620c2db
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user