Commit 24918a5e authored by Dalai Felinto's avatar Dalai Felinto
Browse files

Fix cancel function

parent 8bf22546
Loading
Loading
Loading
Loading
+2 −2
Changes for space_view3d_virtual_reality/__init__.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -96,8 +96,7 @@ class VirtualRealityViewportOperator(bpy.types.Operator):

    def modal(self, context, event):
        if event.type == 'ESC':
            self.oculus.quit()
            return self.cancel()
            return self.cancel(context)

        if event.type == 'TIMER':

@@ -185,6 +184,7 @@ class VirtualRealityViewportOperator(bpy.types.Operator):
            context.window_manager.event_timer_remove(self._timer)
            del self._timer

        self.oculus.quit()
        self.quit()
        return {'CANCELLED'}