don't set draw bin for text

This commit is contained in:
David Rose 2002-08-28 17:38:00 +00:00
parent 0cf3ae8638
commit b257675d04

View File

@ -191,9 +191,7 @@ class OnscreenText(PandaObject, NodePath):
scale[0], 1, scale[1]) * Mat4.translateMat(pos[0], 0, pos[1])
textNode.setTransform(mat)
if drawOrder == None:
drawOrder = DirectGuiGlobals.getDefaultDrawOrder()
if drawOrder != None:
textNode.setBin('fixed')
textNode.setDrawOrder(drawOrder)