mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Fixed an error of not checking cam is None
This commit is contained in:
parent
9d25a49bf7
commit
38b8cd1171
@ -2472,7 +2472,7 @@ class WindowControls:
|
||||
mouseKeyboard=None, closeCmd=lambda: 0):
|
||||
self.win = win
|
||||
self.camera = cam
|
||||
if camNode is None:
|
||||
if camNode is None and cam is not None:
|
||||
camNode = cam.node()
|
||||
self.camNode = camNode
|
||||
self.camera2d = cam2d
|
||||
|
Loading…
x
Reference in New Issue
Block a user