952bc075aeaae349c987c33145c09aa583565beb
Displaying an operator in the context menu that would access the asset via context would fail. 3 issues here in fact: -798219225dremoved code to attach the asset to the button's context. Brought this back. - If the `AssetShelf.get_active_asset()` method (in Python) isn't set, `AssetViewItem::should_be_active()` would always return false, making it impossible to lookup the active item. Instead it should return an empty value so the view's internal active state is used instead. Mistake ina700c90ec3. - These kind of context queries can't rely on cursor coordinates, it's not well defined what state they are in. In fact `wmWindow.eventstate` is unset in debug builds to help enforce this. Also an issue froma700c90ec3. With the above two corrections this change can be undone so the query doesn't depend on cursor coordinates anymore.
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
