mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #107294 : Node Editor "Frame All/Selected" ignore Smooth View
Caused by3a1cf838ca. Smooth view transitions only work when an operator is **invoked** (wont work from **exec**, see `WM_operator_smooth_viewtx_get`). Now3a1cf838cachanged 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. Pull Request: https://projects.blender.org/blender/blender/pulls/107296
This commit is contained in:
parent
cddcabc409
commit
4e320104d0
1 changed files with 1 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ class NODE_MT_view(Menu):
|
|||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
layout.operator("node.view_selected")
|
||||
layout.operator("node.view_all")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue