mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
minor assertion check
This commit is contained in:
parent
7b1046e182
commit
9433b488ec
@ -320,6 +320,7 @@ class OnscreenText(DirectObject, NodePath):
|
||||
self.updateTransformMat()
|
||||
|
||||
def updateTransformMat(self):
|
||||
assert(isinstance(self.textNode, TextNode))
|
||||
mat = (
|
||||
Mat4.scaleMat(self.scale[0], 1, self.scale[1]) *
|
||||
Mat4.rotateMat(self.roll, Vec3(0, -1, 0)) *
|
||||
|
Loading…
x
Reference in New Issue
Block a user