INNER CODE UNIT · Python

draw_cam_lock

SpectralVectors/RightMouseNavigation · preferences.py:13

def draw_cam_lock(self, context):
    preferences = context.preferences
    addon_prefs = preferences.addons[__package__].preferences
    cam_nav = addon_prefs.disable_camera_navigation

    layout = self.layout

    row = layout.row(align=True)
    row.alert = cam_nav
    col = row.column()
    col.scale_x = 1.3
    icon = "VIEW_UNLOCKED" if cam_nav else "VIEW_LOCKED"
    row.operator(text="", operator="rmn.toggle_cam_navigation", icon=icon)

    row = row.row(align=True)
    row.label(text="", icon="CAMERA_DATA")
    row.label(text="", icon="MOUSE_MOVE")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…