Blender Git Commits

Blender Git "master" branch commits.

5 hours 38 min ago
CMake/macOS: Use custom LIBDIR if set on CLI

Reviewed By: ankitm
Maniphest Tasks: T83174
Differential Revision:
18 hours 15 min ago
Speed up finding patch components in new boolean.

By checking if a cell has already been processed in the finding patch
component code, an enormous speedup happens. This only will be
noticeable if there are lots of patches, and some cells with a
large number of patches.
19 hours 15 min ago
Speedups for finding cells in new boolean.

In case where there are coplanar instersections where
each part has a lot of triangles, the finding-cells algorithm was
very inefficient. This uses a Set instead of a Vector to keep track
of a cell's patches, avoids going through all patch x patch combinations,
avoids going through all patches to renumber after a merge, and
merges smaller patch-sixe cells into larger ones.
All this reduces the time to find cells in the cited case by a factor of 10.
1 day and 0 hours ago
Fix some naming and comments in F-Curve smoothing code.
1 day and 0 hours ago
Fix Auto Clamped limits when smoothing the transition of cyclic curves.

The value of l[count-1] should be ready by the time hmin/hmax is computed.
Otherwise the left limit for the transition key would be scaled wrong.
1 day and 0 hours ago
Fix T83023: incorrect shape of cyclic F-Curve with only two points.

The equation solver didn't handle the one unknown case correctly.
1 day and 3 hours ago
GPencil: Fix unreported vertex size for Bezier handles

By error, the Bezier points were using the mesh vertex size, not the grease pencil vertex size.
1 day and 22 hours ago
Fix T82758: Convert Proxy to Override: Local constraints aren't saved.

Ensure consistent order of pose bones. Now it should always match the
one from bones in armature obdata (as exposed by e.g. RNA, i.e.

Previously when some pose bones would need to be added or removed from a
pose due to changes in the bone armature, or if bones in armature were
re-ordered, the bones order in pose would not match anymore the one from
armature, and could even become different between e.g. a proxy and its
linked source.

This was not really nice, but not a big issue before either. But with
diffing process of override, consistent order of items between reference
linked collection and local override one is crucial.

Reviewed By: #animation_rigging, sybren

Maniphest Tasks: T82758

Differential Revision:
1 day and 23 hours ago
Fix transform snap mixed with incremental

The incremental was taking priority but the other elements are mandatory.
November 27, 2020, 13:41 (GMT)
Fix T83092: Direction of rotation with View orientation changed in 2.91

The change was intentional so that the orientation matrices match
(`rv3d->viewinv` becomes equal to the orientation matrix).

But, although in a projection matrix the Z axis is negative, this
should not be so from the user's point of view.

So the solution here is to negate the Z axis when the View orientation
is chosen.

This affects all modes, but is only evident for rotation.

Another change here is to use the final rotation value (`values_final`)
for the gizmo drawing since this value can be changed by the mode.
November 27, 2020, 11:11 (GMT)
Fix T82156: Object with constraints translates when parented

Avoid the evaluation of constraints when computing the parent-inverse

Constraints are meant to be evaluated last; object transforms are
computed this order:

1. `parent->obmat` (the parent object's world matrix)
2. `ob->parentinv` (the object's parent-inverse matrix)
3. Object's loc/rot/scale
4. Object's constraint evaluation

When the constraints are used to compute the parent-inverse matrix,
their effect is moved from step 4 to step 2 in this list, potentially
rotating or scaling the object's local transform. This causes unwanted
movement as reported in T82156.

Reviewed By: looch

Differential Revision:
November 27, 2020, 09:15 (GMT)
Cleanup: Animation, clean up FCurve Cycles modifier

Simplify conditions and declare variables `const` where possible.

No functional changes.
November 27, 2020, 03:37 (GMT)
Cleanup: Add `r_` to return parameter

Prefix a return parameter with `r_` to follow the style guide. No
functional changes.
November 27, 2020, 03:37 (GMT)
Cleanup: Move logic to `outliner_find_item_at_x_in_row`

Move the logic for determining if the item at a given x position is an
icon into the function. This is used for determining selection over an
icon, and will be used in a later commit for checking for hover over an
icon. No functional changes.
November 26, 2020, 23:29 (GMT)
Add performance timing to

You can uncomment the PERFDEBUG define to get timings.
November 26, 2020, 23:18 (GMT)
Sculpt: Refactor transform code to allow incremental updates

This adds support for incremental updates in the sculpt transform
code. Now tools can define if they need the displacement applied
for the original coordinates or incrementally.

This is needed for features like elastic transform or cloth deformation
target in the transform tool.

No functional changes.

Reviewed By: sergey

Differential Revision:
Revision 26eb8d6 by Hans Goudey
November 26, 2020, 17:56 (GMT)
UI: Use decorators in volume modifiers

This is consistent with the UI for other modifier types.
November 26, 2020, 16:44 (GMT)
GPencil: Cleanup - Remove unused old shaders

These fill shaders were used with the old draw engine.
November 26, 2020, 16:42 (GMT)
Transform: Improve event detection for AutoConstrain

The event "value" is not really required since this operation works as a toogle.

This change cleans and simplifies the code.
November 26, 2020, 16:30 (GMT)
Cleanup unintentional change in rB8a2270efc52a

Note that the whole thing need to be redone/properly fixed, but this is
a bit more complicated so for now fix in rB8a2270efc52a is 'good
By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020