e5bdfd533bcc7beb1e38d30432492357bd015dcf
Grease Pencil layer groups are drawn in the layer tree using `AbstractTreeViewItem`. The problem is that the items can't store their expand/collapse state. This meant that switching e.g. the tabs in the properties editor would reset the collapsed state of layer group items. This PR uses the `GP_LAYER_TREE_NODE_EXPANDED` flag to store the expand/collapse state. The tree view then reads from the flag to expand/collapse the items. This also adds an RNA property to layer groups `is_expanded`. Allows to check from python if a group is expanded in the UI. Pull Request: https://projects.blender.org/blender/blender/pulls/131159
…
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%
