The official Blender project repository.
Go to file
Jacques Lucke 47c255e2da Materials: take object and geometry material slot counts into account
Previously, the number of material slots on the geometry (e.g. mesh) was the
ground truth. However, this had limitations in the case when the object had more
material slots than the evaluated geometry. All extra slots on the object were
ignored.

This patch changes the definition so that the number of materials used for
rendering is the maximum of the number of material slots on the geometry and on
the object. This also implies that one always needs a reference to an object
when determining that number, but that was fairly straight forward to achieve in
current code.

This patch also cleans up the material count handling a fair amount by using the
`BKE_object_material_*_eval` API more consistently instead of manually accessing
`totcol`. Cycles uses the the same API indirectly through RNA.

Pull Request: #131761
2024-12-13 15:47:04 +01:00
.gitea Report template: Add link to manual system information collection page 2024-11-19 01:05:52 +01:00
.github Funding: Add FUNDING.yml to link to fund.blender.org on GitHub mirror 2024-07-31 10:03:57 +02:00
build_files Cleanup: Remove WITH_COMPOSITOR_CPU option (compositor is always in) 2024-12-13 14:54:19 +01:00
doc USD: Add new get_prim_map API callable from python on_import hooks 2024-12-11 21:36:09 +01:00
extern Cmake: Add Pipewire support 2024-12-03 16:26:01 +01:00
intern Cycles: Support building with OpenVDB 12 2024-12-13 15:27:26 +01:00
lib Libs: Update Windows ARM64 Vulkan + shaderc 2024-12-10 11:16:12 +01:00
locale I18N: Updated UI translation from git/weblate repository (9809f2b9f468b03). 2024-12-09 11:09:44 +01:00
release Installer: Windows: Various tweaks and updates to the installer 2024-12-10 08:41:04 +01:00
scripts Compositor: always use the new CPU compositor 2024-12-12 20:17:36 +01:00
source Materials: take object and geometry material slot counts into account 2024-12-13 15:47:04 +01:00
tests Cleanup: Remove WITH_COMPOSITOR_CPU option (compositor is always in) 2024-12-13 14:54:19 +01:00
tools Cleanup: remove old CPU compositor code 2024-12-13 10:59:54 +01:00
.clang-format ClangFormat: Remove unused sculpt macro exceptions 2024-11-12 00:44:24 +01:00
.clang-tidy Cleanup: match declaration names, avoid shadowing & clear trailing space 2024-10-03 12:12:08 +10:00
.editorconfig editorconfig: add HTML entry 2023-12-08 13:28:13 +11:00
.git-blame-ignore-revs
.gitignore Deps: support vs2022 x64, git ignores 2024-12-09 17:23:17 +01:00
.gitmodules Revert "Release cycle: Blender 4.3 Beta" 2024-10-02 12:35:26 +02:00
AUTHORS AUTHORS: add 1 new author (via override) 2024-10-29 14:43:10 +11:00
CMakeLists.txt Cleanup: Remove WITH_COMPOSITOR_CPU option (compositor is always in) 2024-12-13 14:54:19 +01:00
COPYING
GNUmakefile make license: command to update the license file 2024-10-18 17:09:43 +02:00
make.bat make license: command to update the license file 2024-10-18 17:09:43 +02:00
pyproject.toml pyproject.toml: correct autopep8 configuration for 2.3.1 2024-10-16 20:55:03 +11:00
README.md Docs: Replace most wiki links with links to new developer docs 2024-01-18 16:49:38 +01:00

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.