mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
fix typos
This commit is contained in:
parent
a5d6bafd7b
commit
5b79b02b31
@ -18,14 +18,14 @@ def getTightBounds(self):
|
|||||||
from pandac.PandaModules import Point3
|
from pandac.PandaModules import Point3
|
||||||
|
|
||||||
if self.getNumPaths() == 0:
|
if self.getNumPaths() == 0:
|
||||||
return (Point3.Point3(0), Point3.Point3(0))
|
return (Point3(0), Point3(0))
|
||||||
v1, v2 = self.getPath(0).getTightBounds()
|
v1, v2 = self.getPath(0).getTightBounds()
|
||||||
for i in range(1, self.getNumPaths()):
|
for i in range(1, self.getNumPaths()):
|
||||||
v1x, v2x = self.getPath(i).getTightBounds()
|
v1x, v2x = self.getPath(i).getTightBounds()
|
||||||
v1 = Point3.Point3(min(v1[0], v1x[0]),
|
v1 = Point3(min(v1[0], v1x[0]),
|
||||||
min(v1[1], v1x[1]),
|
min(v1[1], v1x[1]),
|
||||||
min(v1[2], v1x[2]))
|
min(v1[2], v1x[2]))
|
||||||
v2 = Point3.Point3(max(v2[0], v2x[0]),
|
v2 = Point3(max(v2[0], v2x[0]),
|
||||||
max(v2[1], v2x[1]),
|
max(v2[1], v2x[1]),
|
||||||
max(v2[2], v2x[2]))
|
max(v2[2], v2x[2]))
|
||||||
return v1, v2
|
return v1, v2
|
||||||
|
@ -158,8 +158,8 @@ del getAncestry
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
def getTightBounds(self):
|
def getTightBounds(self):
|
||||||
from pandac.PandaModules import Point3
|
from pandac.PandaModules import Point3
|
||||||
v1 = Point3.Point3(0)
|
v1 = Point3(0)
|
||||||
v2 = Point3.Point3(0)
|
v2 = Point3(0)
|
||||||
self.calcTightBounds(v1, v2)
|
self.calcTightBounds(v1, v2)
|
||||||
return v1, v2
|
return v1, v2
|
||||||
Dtool_funcToMethod(getTightBounds, NodePath)
|
Dtool_funcToMethod(getTightBounds, NodePath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user