forked from blender/blender
Philipp Oeser
6c045f7335
There were multiple reports with objects having many empty material slots. The underlying reason for this is the behavior of adding/assigning materials [which makes room in the form of empty material slots based on the current `active_material_index` -- which atm. can be set to arbitrary values]. So just e.g. setting this to 100 in a fresh file and assigning a material would create 99 empty slots. To resolve, now clamp to the existing number of material slots. NOTE: there is already a range function defined, but this actually only kicks in from the animation system (so clamping would take place there), so clamping is expected to happen in the set functions (there is also a related comment in `RNA_property_int_set`) Pull Request: blender/blender#120434 |
||
---|---|---|
.gitea | ||
.github | ||
build_files | ||
doc | ||
extern | ||
intern | ||
lib | ||
locale | ||
release | ||
scripts | ||
source | ||
tests | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitignore | ||
.gitmodules | ||
AUTHORS | ||
CMakeLists.txt | ||
COPYING | ||
GNUmakefile | ||
README.md | ||
make.bat | ||
pyproject.toml |
README.md
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.