fd83be0fa57d58a51561d45c8c563b498cd44e5b
When the material index of a stroke is out-of-range of the material slots, the strokes are never editable. This makes it hard to even re-assign the material or otherwise remove such strokes. A negative index can happen when curves are added while a Grease Pencil object has no material slots (see #123887). Since `material_index` is a generic attribute and should be allowed any value, strokes with out-of-range indices should be considered editable by default. This patch slightly changes the `get_editable_material_indices` function for tools, such that only __valid__ materials with the "Locked" flag set are considered non-editable. Pull Request: https://projects.blender.org/blender/blender/pulls/132806
…
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%
