INNER CODE UNIT · Python

invoke

SpectralVectors/RightMouseNavigation · operators.py:121

    def invoke(self, context, event):
        # Store Blender cursor position
        self.view_x = event.mouse_x
        self.view_y = event.mouse_y
        return self.execute(context)

    def execute(self, context):
        preferences = context.preferences
        addon_prefs = preferences.addons[__package__].preferences
        enable_nodes = addon_prefs.enable_for_node_editors
        disable_camera = addon_prefs.disable_camera_navigation
        navigation_mode = addon_prefs.navigation_mode

        space_type = context.space_data.type

        # Execute is the first thing called in our operator, so we start by
        # calling the appropriate navigation based on user preference
        if space_type == "VIEW_3D":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…