Maniphest T76209

align to view option is ignored when using the adjust last operation panel
Closed, Archived

Assigned To
Richard Antalik (ISS)
Authored By
michael campbell (3di)
Apr 29 2020, 3:14 AM
Tags
  • BF Blender
Subscribers
Ankit Meel (ankitm)
michael campbell (3di)
Richard Antalik (ISS)

Description

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.92

Blender Version
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-04-23 21:08, hash: rB826f6dd9ee20
Worked: (newest version of Blender that worked as expected)

Short description of error
after creating a cube, the align to view option is ignored when using the adjust last operation panel...but only if the adjust last operation panel is called using the f9 key when the mouse is not over the 3d viewport.

Exact steps for others to reproduce the error
add a cube, move the mouse off of the 3d viewport onto a different panel. press f9, change the align option to 'view', nothing happens, try 'world', now try '3d cursor'. 3d cursor always works, but dependant on which panel you're over world may or may not work, but 'view' will never work.

Perhaps each operator should check which 3d view the object in question was created in, and get the view information from that regardless of which panel the mouse is over?

Event Timeline

michael campbell (3di) created this task.Apr 29 2020, 3:14 AM
Ankit Meel (ankitm) added a subscriber: Ankit Meel (ankitm).Apr 29 2020, 9:01 AM

Location of cursor is indeed important to get right context.. shortcuts change a lot due to that.
So one cannot expect wrong methods to do the right thing.

michael campbell (3di) added a comment.Apr 29 2020, 11:12 AM

Hi Ankit, I don’t think context applies regarding the adjust last operation......unless each window has its own undo history? That would be nice by the way.

Richard Antalik (ISS) closed this task as Archived.Apr 29 2020, 10:23 PM
Richard Antalik (ISS) claimed this task.
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).
In T76209#919949, @michael campbell (3di) wrote:

Hi Ankit, I don’t think context applies regarding the adjust last operation.

Context does apply here. It is basically the same as if you re-executed operator from different area with new settings applying to context of that area.

michael campbell (3di) added a comment.EditedApr 29 2020, 10:40 PM
In T76209#920344, @Richard Antalik (ISS) wrote:
In T76209#919949, @michael campbell (3di) wrote:

Hi Ankit, I don’t think context applies regarding the adjust last operation.

Context does apply here. It is basically the same as if you re-executed operator from different area with new settings applying to context of that area.

Perhaps it would be better if the adjust last operation could check if the context was valid, and if not use the previous context. For example in this case, if the new context is not of the same type (3d view) as when the intitial operator was run, then it would use the view data from the initial context, if it is valid, ie another 3d view, then it would use the new context.