Modeling: Snap 3d cursor rotation to active #112718

Open
MohammadHossein Jamshidi wants to merge 4 commits from Jam3D/blender:snap_3dcursor_rotation_to_active into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

This PR adds the ability of snapping(aligning) the rotation of the 3d cursor to the active element.
we can choose snap mode: location only, rotation only, location and rotation.
It also takes care of skewed cases; so a function that handles the skewness, keeps an important axis and cures the others.

General 3d cursor bug: there's an issue with the operators that are manipulating the 3d cursor's transformation. Since is is not included in undo_stack, changing the state of the operator, will result in rerunning also in the new mode. To see this, apply the "snap cursor to active", then change the mode and you'll see that.

image

This PR adds the ability of snapping(aligning) the rotation of the 3d cursor to the active element. we can choose snap mode: location only, rotation only, location and rotation. It also takes care of skewed cases; so a function that handles the skewness, keeps an important axis and cures the others. General 3d cursor bug: there's an issue with the operators that are manipulating the 3d cursor's transformation. Since is is not included in undo_stack, changing the state of the operator, will result in rerunning also in the new mode. To see this, apply the "snap cursor to active", then change the mode and you'll see that. ![image](/attachments/97e89ce8-12e9-49db-8e15-951b9be60888)
MohammadHossein Jamshidi added 4 commits 2023-09-22 14:11:44 +02:00
MohammadHossein Jamshidi requested review from Campbell Barton 2023-09-22 14:12:17 +02:00

this seems to be a bug with the 3D cursor and the undo system
#57100: Redo panel does not work for the 3d cursor

this seems to be a bug with the 3D cursor and the undo system [#57100: Redo panel does not work for the 3d cursor](https://projects.blender.org/blender/blender/issues/57100)
MohammadHossein Jamshidi changed title from WIP: Snap 3d cursor rotation to active to Modeling: Snap 3d cursor rotation to active 2023-09-22 15:20:42 +02:00
Nate Rupsis added the
Module
Modeling
label 2023-09-22 17:23:17 +02:00
MohammadHossein Jamshidi changed title from Modeling: Snap 3d cursor rotation to active to WIP: Modeling: Snap 3d cursor rotation to active 2023-09-23 00:17:02 +02:00
MohammadHossein Jamshidi changed title from WIP: Modeling: Snap 3d cursor rotation to active to Modeling: Snap 3d cursor rotation to active 2023-09-23 00:17:19 +02:00
This pull request has changes conflicting with the target branch.
  • source/blender/blenlib/intern/math_matrix.c

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u snap_3dcursor_rotation_to_active:Jam3D-snap_3dcursor_rotation_to_active
git checkout Jam3D-snap_3dcursor_rotation_to_active
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#112718
No description provided.