Go to file
Kévin Dietrich b183e3ae89 Cleanup: Alembic, use a structure to hold interpolation settings
The Alembic importer can optionnaly interpolate vertex and matrix data.
To detect if two samples can be interpolated `get_weight_and_index`
needs to be called which output the interpolation weight and the indices
for the floor and ceil samples separately. Either the weight or the
indices could be used to determine if interpolation was needed.

This adds a `SampleInterpolationSettings` structure to hold the weight
and indices together so we don't need to manage multiple local
variables, and replaces `get_weight_and_index` with
`get_sample_interpolation_settings` which returns either a
`SampleInterpolationSettings` or nothing if no interpolation is
necessary.

This also modifies `AbcMeshData` to have an optional
`SampleInterpolationSettings` and removes members used for interpolation
from `CDStreamConfig`, which simplifies the latter structure as well as
the check in `read_mverts` to verify if interpolation is needed.

`get_config` also no longer needs a parameter for setting the now removed
`use_vertex_interpolation` member from `CDStreamConfig`. This was only
used for Mesh vertex interpolation despite also being set in the points
reader (which does not yet support any interpolation).

No functional changes.

Pull Request: #109155
2023-07-09 01:26:07 +02:00
.gitea Gitea: update bug report template for security policy 2023-04-11 12:14:01 +02:00
.github Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:23:05 +01:00
build_files CMake: Fix list_assert_duplicates 2023-07-07 11:00:29 -06:00
doc Cleanup: use set.discard instead of a __contains__ check before remove() 2023-07-02 19:54:27 +10:00
extern Cleanup: disable -Weverything for clang under extern/ 2023-07-05 13:20:53 +10:00
intern Fix #103918: Cycles point cloud motion blur artifacts on the GPU 2023-07-07 20:15:36 +02:00
locale I18n: Updated translations from SVN trunk (r6617). 2023-07-04 18:25:00 +02:00
release Fix mistake in PyPI release instructions, improve console output 2023-07-03 17:00:34 +02:00
scripts Eevee-next: Reflection Probe Packing 2023-07-07 15:37:26 +02:00
source Cleanup: Alembic, use a structure to hold interpolation settings 2023-07-09 01:26:07 +02:00
tests Fix incorrect EXPECT_M4_NEAR 2023-07-03 19:18:28 +02:00
tools Cleanup: code-comments 2023-07-07 15:11:19 +10:00
.clang-format clang-format: set BraceWrapping::AfterControlStatement to "MultiLine" 2023-05-02 09:37:08 +10:00
.clang-tidy Clang-tidy: Ignore variable name length and .c/.cc include warnings 2022-05-06 15:26:54 +02:00
.editorconfig pyproject: add configuration for autopep8 2022-04-22 10:13:39 +10:00
.git-blame-ignore-revs Cleanup: add commit to .git-blame-ignore-revs 2023-05-03 20:31:11 +10:00
.gitignore Ignore build files for VS and VS Code 2023-03-07 17:38:34 +01:00
CMakeLists.txt CMake: Enable unused-parameter warning for Clang C++ 2023-07-05 09:25:51 +02:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
make.bat make.bat: adjust for recent submodule changes 2023-03-16 17:51:12 -06:00
pyproject.toml pyproject: remove tools/pyproject.toml 2023-03-01 22:18:28 +11:00
README.md Update references to the new projects platform and main branch 2023-02-07 14:18:19 +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.