Blender Git Commit Log

Git Commits -> Revision 3834dc2

Revision 3834dc2 by Philipp Oeser (master)
December 15, 2020, 18:10 (GMT)
Fix Adjust Last Operation popup for operators relying on button context

This was reported for duplicating particle systems, then using F9 to
enable the 'Duplicate Settings' option (see T83317).
In this case, the operator gets the particle_system from (buttons)
context and if none can get found will duplicate all settings instead.

The reason why none gets found here is that buttons_context() doesnt
have a valid path when called from F9/SCREEN_OT_redo_last, path is
cleared when global undo does a file-read which clears the path (see
lib_link_workspace_layout_restore). It can be recomputed though to be
valid even from redo_last (at least when in the Properties Editor).

This was likely causing other operators (relying on buttons context)
from the Properties Editor to fail as well.

Fixes T83317

Maniphest Tasks: T83317

Differential Revision: https://developer.blender.org/D9825

Commit Details:

Full Hash: 3834dc2f7b38a8a29b8cd6dbcd55ac5be7890553
Parent Commit: ffe63b0
Lines Changed: +5, -0

1 Modified Path:

/source/blender/editors/space_buttons/buttons_context.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021