Page MenuHome

bpy.ops.view3d.view_roll(type='ANGLE') Operation failure
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.84

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-12-30 22:39, hash: rBbf4358ed0c54
Worked: (newest version of Blender that worked as expected)

Short description of error
A shift right-click rotation view shortcut is set, but after scrolling, it returns to the original angle when confirming the operation
设置了按住shift键并单击鼠标右键的“旋转视图”快捷方式,但在滚动后,在确认操作时,该快捷方式将返回到原始角度

Exact steps for others to reproduce the error
I tried to reproduce this operation with 2.93 and found that it did not return to the original angle, so I inferred that it was a bug in 3.1

我尝试了使用2.93复现这个操作,发现并没有回到原来的角度,所以我推断是3.1出现的BUG

Event Timeline

EMM (IMBI) renamed this task from bpy.context.view3d.view_roll(type='ANGLE') Operation failure to bpy.ops.view3d.view_roll(type='ANGLE') Operation failure.Dec 31 2021, 10:44 AM
EMM (IMBI) created this task.
Philipp Oeser (lichtwerk) closed this task as Archived.Jan 3 2022, 10:06 AM

Assigning anything RMB wont work with view viewport roll since this is hardcoded to cancel the operation.
Having RMB in your shortcut is generally not a good idea since RMB is taken for cancel in many operations.

This is indeed new and came with rB5d5504d8a4b6: 3DView: ability to cancel out of viewport roll -- before, you could not cancel out of roll at all.
In a way this is a compromise (in the sense that you are loosing the ability for your very specific shortcut, but gaining the general ability to cancel out of that operation) --, but it is not considered a bug.

So suggest to come up with a different shortcut.
Thx reporting, but afraid will have to close.

Thank you. I see