Caused by 6967255906.
The code was assuming that `UI_context_active_but_prop_get`
would return a valid button.
This simply checks if the returned value is not `nullptr`.
Pull Request: https://projects.blender.org/blender/blender/pulls/123879
Caused by 6967255906.
The code was assuming that `UI_context_active_but_prop_get`
would return a valid button.
This simply checks if the returned value is not `nullptr`.
Pull Request: https://projects.blender.org/blender/blender/pulls/123879