WIP: Avoid unintentional 3D View inheritance #110019

Closed
Julien Kaspar wants to merge 1 commits from JulienKaspar:3d-view-inheritance into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Based on design task: #105298

General Info

This change makes generic transform operators more mode specific. This avoids unwanted/unnecessary keybindings in various nodes.

This change is needed for #108712.

NOTE: This PR is currently not building correctly and needs some fixes.

Changes

Move, Rotate and Scale operations are moved into their own function instead of 3D View (Global).
This function is then pasted into any mode that requires it.

Other operations like Shear, To Sphere, Mirror, Bend, Skin Resize & Transform Axis Target are pasted into each mode where they are required/supported.

Based on design task: #105298 # General Info This change makes generic transform operators more mode specific. This avoids unwanted/unnecessary keybindings in various nodes. This change is needed for #108712. NOTE: This PR is currently not building correctly and needs some fixes. # Changes **Move**, **Rotate** and **Scale** operations are moved into their own function instead of 3D View (Global). This function is then pasted into any mode that requires it. Other operations like **Shear**, **To Sphere**, **Mirror**, **Bend**, **Skin Resize** & **Transform Axis Target** are pasted into each mode where they are required/supported.
Julien Kaspar added this to the 4.0 milestone 2023-07-12 18:45:55 +02:00
Julien Kaspar added 1 commit 2023-07-12 18:46:02 +02:00
2485ec0188 Rearranging of transform operators.
Allows operators to be more mode specific.
Campbell Barton requested changes 2023-07-21 09:10:16 +02:00
Campbell Barton left a comment
Owner

Requesting changes although it's just a minor tweak to avoid duplication for bend/mirror key-map items.

Requesting changes although it's just a minor tweak to avoid duplication for bend/mirror key-map items.
@ -332,6 +332,22 @@ def _template_space_region_type_toggle(*, toolbar_key=None, sidebar_key=None, ch
return items
def _template_items_transform_actions(params):

To keep shared keys central, this function can take keyword only arguments:

def _template_items_transform_actions(params, *, use_mirror=False, use_bend=False):

... then callers that use these operators can call this function with them set.

To keep shared keys central, this function can take keyword only arguments: `def _template_items_transform_actions(params, *, use_mirror=False, use_bend=False):` ... then callers that use these operators can call this function with them set.

Committed d7558a243c with edits, closing.

Committed d7558a243c6b3b48669d7c084ff0cfbbc5324e6a with edits, closing.
Campbell Barton closed this pull request 2023-07-25 13:34:58 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#110019
No description provided.