INNER CODE UNIT · Python

cam_lock_update

SpectralVectors/RightMouseNavigation · preferences.py:32

def cam_lock_update(self, context):
    preferences = context.preferences
    addon_prefs = preferences.addons[__package__].preferences

    if addon_prefs.show_cam_lock_ui:
        bpy.types.VIEW3D_HT_tool_header.prepend(draw_cam_lock)
    else:
        bpy.types.VIEW3D_HT_tool_header.remove(draw_cam_lock)


def node_keymap(keyconfig):
    for key in keyconfig.keymaps["Node Editor"].keymap_items:
        if key.idname == "wm.call_menu" and key.type == "RIGHTMOUSE":
            key.active = not key.active


def update_node_keymap(self, context):
    wm = context.window_manager

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…