f84197f0b9463cc2a4d880156d0cce7c4ae5dd20
Previously it was possible to make the type prefix of a Slot's identifier get out-of-sync with its actual target ID type, by setting the identifier via Python. This PR changes `Slot.identifier` assignment to ensure that the type prefix is set to match `target_id_type`. This now makes it impossible for the identifier prefix and `target_id_type` to get out of sync, since this API previously was the only way to accomplish that. When the prefix that the user attempts to set doesn't match the `target_id_type` of the Slot, a warning is issued telling the user about the mismatch and that the identifier has been set with the correct prefix instead. Pull Request: https://projects.blender.org/blender/blender/pulls/133983
…
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%
