Rotate with "R" key or using bpy.ops.transform.rotate produces inverted rotation. Effects Object, Mesh Edit and Pose Mode #83092

Closed
opened 2020-11-27 07:49:17 +01:00 by Richard Rose · 17 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: 0f45cab862
Worked: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0

Short description of error

If a numeric figure is entered after pressing "R" to rotate an object by a set amount in object mode or if bpy.ops.transform.rotate is called via a script or the console, objects rotate in the opposite direction to intended.

A similar bug was present in 2.80 https://developer.blender.org/T66527 but this had a workaround that if you set the orient matrix in a script it would force the rotation to be in the correct direction. This workaround no longer works.

This bug also effects mesh edit mode and pose mode!!!

Exact steps for others to reproduce the error

Launch startup file.
Go into top view
Go into orthographic mode.
Select default cube
Press "R" on the keyboard and enter 15

Result:
Cube rotates -15 degrees rather than +15 degrees.

Alternatively:

Launch startup file.
Go into top view
Go into orthographic mode.
Select default cube

then in the console:

bpy.ops.transform.rotate(value=0.261799)

Result:
Cube rotates -15 degrees rather than +15 degrees.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `0f45cab862` Worked: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` **Short description of error** If a numeric figure is entered after pressing "R" to rotate an object by a set amount in object mode or if bpy.ops.transform.rotate is called via a script or the console, objects rotate in the opposite direction to intended. A similar bug was present in 2.80 https://developer.blender.org/T66527 but this had a workaround that if you set the orient matrix in a script it would force the rotation to be in the correct direction. This workaround no longer works. This bug also effects mesh edit mode and pose mode!!! **Exact steps for others to reproduce the error** Launch startup file. Go into top view Go into orthographic mode. Select default cube Press "R" on the keyboard and enter 15 Result: Cube rotates -15 degrees rather than +15 degrees. Alternatively: Launch startup file. Go into top view Go into orthographic mode. Select default cube then in the console: >>> bpy.ops.transform.rotate(value=0.261799) Result: Cube rotates -15 degrees rather than +15 degrees.
Author

Added subscriber: @richeyrose

Added subscriber: @richeyrose

#84858 was marked as duplicate of this issue

#84858 was marked as duplicate of this issue

#83325 was marked as duplicate of this issue

#83325 was marked as duplicate of this issue
Member

Added subscribers: @mano-wii, @lichtwerk

Added subscribers: @mano-wii, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Value-wise, this is actually the other way around:
In 2.90, if you type in {key R 15}, the cube would turn clockwise, but the value for Rotation Z would actually end up -15
In 2.91, if you type in {key R 15}, the cube would turn counter-clockwise, but the value for Rotation Z would actually end up 15

@mano-wii, you have done some changes here, I guess this is now expected behavior?

Value-wise, this is actually the other way around: In 2.90, if you type in {key R 15}, the cube would turn **clockwise**, but the value for Rotation Z would actually end up `-15` In 2.91, if you type in {key R 15}, the cube would turn **counter-clockwise**, but the value for Rotation Z would actually end up `15` @mano-wii, you have done some changes here, I guess this is now expected behavior?

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

This change was intentional in order to maintain a standard for viewport orientation.
The Z axis of the viewport matrix points to the other side, so this negative angle is like expected.
Before there were conditions and adjustments depending on the transform mode and this was becoming a growing snowball.
But I'll take a look again and see if I can work around this problem in another way.

This change was intentional in order to maintain a standard for viewport orientation. The Z axis of the viewport matrix points to the other side, so this negative angle is like expected. Before there were conditions and adjustments depending on the transform mode and this was becoming a growing snowball. But I'll take a look again and see if I can work around this problem in another way.

This issue was referenced by 87310c0af1

This issue was referenced by 87310c0af164db5b7f3de33cf8612c4f490b112d

This issue was referenced by f9e994d0f4

This issue was referenced by f9e994d0f463abb87761591e30c47a9613be6cca

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Germano Cavalcante self-assigned this 2020-11-27 14:52:25 +01:00

Added subscribers: @ThomasRadeke, @rjg

Added subscribers: @ThomasRadeke, @rjg

Added subscriber: @JonathanLax

Added subscriber: @JonathanLax

This issue was referenced by c828a505c2

This issue was referenced by c828a505c2e0987beed7a2a1803b05c1eb374ce2

This issue was referenced by acc662ea5a

This issue was referenced by acc662ea5a778859eb5b7c31233c8e0fb8157de9

This issue was referenced by a9b53daf23

This issue was referenced by a9b53daf23ba8b6cb4c930e06154ffd35522b00d

This issue was referenced by 216ebe0b73

This issue was referenced by 216ebe0b7392d6da484cbf369402c65b3c6352f8
Sign in to join this conversation.
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
5 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#83092
No description provided.