mirror of
https://github.com/panda3d/panda3d.git
synced 2026-03-05 06:29:42 -06:00
Fixed VBase3 case where setPos was called for pos hpr and scale
This commit is contained in:
@@ -80,13 +80,13 @@ class OnscreenImage(PandaObject, NodePath):
|
||||
isinstance(hpr, types.ListType)):
|
||||
apply(self.setHpr, hpr)
|
||||
elif isinstance(hpr, VBase3):
|
||||
self.setPos(hpr)
|
||||
self.setHpr(hpr)
|
||||
# Scale
|
||||
if (isinstance(scale, types.TupleType) or
|
||||
isinstance(scale, types.ListType)):
|
||||
apply(self.setScale, scale)
|
||||
elif isinstance(scale, VBase3):
|
||||
self.setPos(scale)
|
||||
self.setScale(scale)
|
||||
elif (isinstance(scale, types.FloatType) or
|
||||
isinstance(scale, types.IntType)):
|
||||
self.setScale(scale)
|
||||
|
||||
Reference in New Issue
Block a user