INNER CODE UNIT · Python
RMN_OT_right_mouse_navigation
SpectralVectors/RightMouseNavigation · operators.py:5
class RMN_OT_right_mouse_navigation(Operator):
"""Timer that decides whether to display a menu after Right Click"""
bl_idname = "rmn.right_mouse_navigation"
bl_label = "Right Mouse Navigation"
bl_options = {"REGISTER", "UNDO"}
_timer = None
_count = 0
MOUSE_RIGHTUP = 0x0010
_finished = False
_callMenu = False
_ortho = False
_back_to_ortho = False
menu_by_mode = {
"OBJECT": "VIEW3D_MT_object_context_menu",
"EDIT_MESH": "VIEW3D_MT_edit_mesh_context_menu",
"EDIT_SURFACE": "VIEW3D_MT_edit_surface",