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

Closed
opened 2 years ago by richeyrose · 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.
Poster

Added subscriber: @richeyrose

Added subscriber: @richeyrose
Collaborator

#84858 was marked as duplicate of this issue

#84858 was marked as duplicate of this issue
Collaborator

#83325 was marked as duplicate of this issue

#83325 was marked as duplicate of this issue
Collaborator

Added subscribers: @mano-wii, @lichtwerk

Added subscribers: @mano-wii, @lichtwerk
Collaborator

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

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

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?
Collaborator

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

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

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.
Collaborator

This issue was referenced by 87310c0af1

This issue was referenced by 87310c0af164db5b7f3de33cf8612c4f490b112d
Collaborator

This issue was referenced by f9e994d0f4

This issue was referenced by f9e994d0f463abb87761591e30c47a9613be6cca
Collaborator

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
mano-wii closed this issue 2 years ago
mano-wii self-assigned this 2 years ago
rjg commented 2 years ago
Collaborator

Added subscribers: @ThomasRadeke, @rjg

Added subscribers: @ThomasRadeke, @rjg
rjg commented 2 years ago
Collaborator

Added subscriber: @JonathanLax

Added subscriber: @JonathanLax
Collaborator

This issue was referenced by c828a505c2

This issue was referenced by c828a505c2e0987beed7a2a1803b05c1eb374ce2
Collaborator

This issue was referenced by acc662ea5a

This issue was referenced by acc662ea5a778859eb5b7c31233c8e0fb8157de9
Collaborator

This issue was referenced by a9b53daf23

This issue was referenced by a9b53daf23ba8b6cb4c930e06154ffd35522b00d
Collaborator

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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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
5 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#83092
Loading…
There is no content yet.