Browse Source

minor assertion check

David Rose 19 years ago
parent
commit
9433b488ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/gui/OnscreenText.py

+ 1 - 0
direct/src/gui/OnscreenText.py

@@ -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)) *