This commit is contained in:
David Rose 2001-12-18 18:22:16 +00:00
parent 0fe72c30db
commit 0c64ea0087

View File

@ -23,7 +23,7 @@ class Mopath(PandaObject):
nodePath = loader.loadModel(filename)
if nodePath:
self.__extractCurves(nodePath)
if (self.tNurbsCurve != None):
if (self.tNurbsCurve != []):
self.maxT = self.tNurbsCurve[-1].getMaxT()
elif (self.xyzNurbsCurve != None):
self.maxT = self.xyzNurbsCurve.getMaxT()