Fix #107294 : Node Editor "Frame All/Selected" ignore Smooth View #107296

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:107294 into main 2023-04-25 10:30:02 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser a0c2c518fa Fix #107294 : Node Editor "Frame All/Selected" ignore Smooth View
Caused by 3a1cf838ca.

Smooth view transitions only work when an operator is **invoked** (wont
work from **exec**, see `WM_operator_smooth_viewtx_get`).

Now 3a1cf838ca changed the `operator_context` for some other operators
in the menu to 'EXEC_REGION_WIN' (for good reason). But setting
`operator_context` on a `uiLayout` will set context on the **root**
layout (not the actual sublayout alone), so all following operators
"inherited" the [changed] context.

Now make sure following operators get properly invoked again by giving
the right context.
2023-04-24 14:16:32 +02:00