def OnSelect(self): """ Selection handler. Make sure to disable the frustum if it was shown before running the select handler as the frustum will change the size of the bounding box. """ frusVis = self.GetFrustumVisible(self.data) if frusVis: self.SetFrustumVisible(self.data, False) GameLensNode.OnSelect(self) if frusVis: self.SetFrustumVisible(np, True)