0
0
Fork 0
The official Blender project repository.
Go to file
Philipp Oeser 6c045f7335 Fix #114428: clamp setting object active_material_index
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
2024-04-12 17:35:22 +02:00
.gitea Revert "Experiment: Add release notes PR link field to pull request template" 2024-02-16 16:41:07 +01:00
.github
build_files CMake: Change build flags to use SSE42 if available 2024-04-11 20:46:14 +02:00
doc Python: replace '%' with str.format for examples & templates 2024-04-12 15:33:40 +10:00
extern Libraries: integrate xxHash library for fast hashing 2024-04-03 10:22:53 +02:00
intern Guarded allocator: Ensure alignment and size of MemHead 2024-04-12 17:22:46 +02:00
lib Merge branch 'blender-v4.1-release' 2024-03-16 19:45:51 +01:00
locale I18N: Updated UI translations from git/weblate (ab9a702e968). 2024-04-05 11:51:17 +09:00
release Linux desktop spec: remove "game engine" keyword 2024-04-11 17:43:38 +10:00
scripts Anim: Add custom pre and post frame color to motion path 2024-04-12 15:11:51 +02:00
source Fix #114428: clamp setting object active_material_index 2024-04-12 17:35:22 +02:00
tests Cleanup: remove redundant string formatting 2024-04-12 10:04:07 +10:00
tools Cleanup: remove redundant string formatting 2024-04-12 10:04:07 +10:00
.clang-format Clang-Format: Ensure single new line at the end of files 2024-02-22 14:42:10 +01:00
.clang-tidy Clang-tidy: Ignore variable name length and .c/.cc include warnings 2022-05-06 15:26:54 +02:00
.editorconfig editorconfig: add HTML entry 2023-12-08 13:28:13 +11:00
.git-blame-ignore-revs Cleanup: add commit to .git-blame-ignore-revs 2023-05-03 20:31:11 +10:00
.gitignore Switch SVN to Git submodules using Git-LFS 2024-02-22 13:50:55 +01:00
.gitmodules Windows: Add ARM64 lib submodule 2024-03-14 18:12:51 +01:00
AUTHORS AUTHORS: add 7 new developers 2024-03-07 14:07:39 +11:00
CMakeLists.txt CMake: Change build flags to use SSE42 if available 2024-04-11 20:46:14 +02:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Merge branch 'blender-v4.1-release' into main 2024-02-22 15:12:40 +01:00
README.md Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00
make.bat Switch SVN to Git submodules using Git-LFS 2024-02-22 13:50:55 +01:00
pyproject.toml Black: skip string normalisation 2024-01-22 10:09:33 +01:00

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.

Blender screenshot

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.