Blender Git Commits

Blender Git "master" branch commits.

Page: 224 / 5574

June 29, 2021, 03:31 (GMT)
Cleanup: use "use_" prefix for boolean types
Revision f8d8f28 by Hans Goudey
June 29, 2021, 03:22 (GMT)
Curves: Avoid duplication of control points during evaluation

This commit avoids duplicating the deformed control point
list twice by modifying the list in the object curve cache directly.

For curves, the original control point data was duplicated into a
local listbase, deformed, used to create the "bevel list" data, and
then duplicated again for the object-level storage of deformed
control points. Text objects and surface objects had a similar
unnecessary duplication.
Revision a3a7e19 by Hans Goudey
June 29, 2021, 02:46 (GMT)
Cleanup: Avoid freeing curve evaluation data twice

The curve bevel list was freed, and then freed again in a call to the
function that recalulates it. The curve "anim path" data was freed
only to be freed again in its calculation function as well. Also move
the anim_path calculation directly after the bevel list creation to
make its requirements more explicit.
Revision 3471ff1 by Hans Goudey
June 29, 2021, 02:31 (GMT)
Cleanup: Split curve and surface data evaluation functions, rename

Surface objects were already handled by an early return in the main
"curve types" function. This commit splits them, renames the funtions
to match (and be more consistent with other names), and sanitizes the
checking of object types.
Revision d648016 by Hans Goudey
June 29, 2021, 02:17 (GMT)
Cleanup: Order return arguments last, use r_ prefix
June 29, 2021, 00:37 (GMT)
Cleanup: clang-tidy
June 29, 2021, 00:23 (GMT)
Cleanup: resolve discarded-qualifier warning
June 28, 2021, 22:09 (GMT)
Fix T89465: Loss of mouse movement when window left with pen.

When a window is left with a WinPointer pen, the inrange check
prevents resetting pen info.
Revision 2271b9b by Hans Goudey
June 28, 2021, 21:56 (GMT)
Cleanup: Avoid ASAN report when converting displist to mesh

Don't call `memcpy` with a null destination (and 0 size).
Revision d0e6b59 by Hans Goudey
June 28, 2021, 20:21 (GMT)
Cleanup: Replace paranoid check with assert

Every call to `BKE_displist_make_curveTypes` already checks the object
type beforehand, there is no need to check it again. Also removed an
outdated comment.
Revision d2e473a by Hans Goudey
June 28, 2021, 20:14 (GMT)
Cleanup: Remove unused "for_orco" argument to curve evaluation

`BKE_displist_make_curveTypes` had a `for_orco` argument that was
always false in calls to the function. Removing it allows the curve
displist and modifier evaluation code to become simpler. There are
some related cleanups in rBdf4299465279 and rB93aecd2b8107.
Revision a0c45a2 by Hans Goudey
June 28, 2021, 19:28 (GMT)
Cleanup: Add function to create a CurveEval from a nurbs list

Sometimes the current spline list isn't part of the original curve, like
when using the deformed control points, etc. This will be helpful in
the curve modifier stack.
Revision 790cb28 by Hans Goudey
June 28, 2021, 19:15 (GMT)
Curve: Add functions to retrieve const access to spline list

While the const correctness of `ListBase` is quite limited, it's helpful
to have a way to retrieve the `Nurb` list from curve object data without
casting away const from the curve.
Revision dc0c813 by Hans Goudey
June 28, 2021, 18:47 (GMT)
Cleanup: Use const arguments
June 28, 2021, 18:43 (GMT)
UI: Do Not Resize Already-Open Temporary Windows

There is no longer a need to resize windows that are _already_ open,
since temporary windows can no longer take over the space used by other
already-open temporary windows. This primarily affects Preferences and
Render windows.

see D11721 for more details.

Differential Revision: https://developer.blender.org/D11721

Reviewed by Julian Eisel
Revision c0fb837 by Julian Eisel
June 28, 2021, 17:47 (GMT)
Fix T89515: Clicking on Favorites in File Browser will rename them

Likely uncovered by 6c97c7f767c9, the actual mistake would be from
6942dd9f4900.

The hacks to display text buttons for renaming in UI-Lists used the emboss of
the text button for handling logic. It relied on the emboss `NONE` but we also
introduced `NONE_OR_STATUS` with 6942dd9f4900. Both values need to be treated
equally for the logic of this hack to work.

The change in `interface_layout.c` is actually not needed for this exact issue,
but it's the correct thing to do. There may actually be more cases where `NONE`
and `NONE_OR_STATUS` need to be treated equally. Something to be checked still.
Revision 578ccdf by Julian Eisel
June 28, 2021, 17:30 (GMT)
Fix T89516: Crash on append

Caused by 37458798fa02, was doing a NULL-pointer dereference because it used
the wrong pointer to check if the data-block is linked.
June 28, 2021, 17:09 (GMT)
Fix T87194: custom attributes not accessible with Cycles Volume

Custom properties defined on objects are not accessible from the
attribute node when rendering a volume in Cycles. This is because
this case is not handled.

To handle it, added a primitive type for volumes in the kernel,
which is then used in the initialization of ShaderData and to
check whether an attribute lookup is for a volume.

`volume_attribute_float4` is also now checking the attribute
element type to dispatch to the right lookup function.

Reviewed By: #cycles, brecht

Maniphest Tasks: T87194

Differential Revision: https://developer.blender.org/D11728
Revision afb1755 by Julian Eisel
June 28, 2021, 16:38 (GMT)
Fix T89449: File Browser preview image not responsive to click

Logic in the main `switch` for button handling was wrong and would execute for
other button types than the new data-set row button type.
June 28, 2021, 15:03 (GMT)
LibOverride: Fix crash in ShapeKeys when making a mesh override local.

Weird 'embedded for overrides' flag of embedded IDs (including ShapeKeys
in override context) was not properly cleaned up when making an override
fully local.

Reported by studio, thanks.

@jbakker should be backported to 2.93LTS if possible.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021