Blender Git Commits

Blender Git "master" branch commits.

Page: 318 / 5574

April 6, 2021, 13:34 (GMT)
Fix Cycles rendering files with Simplify wrong after recent changes

The versioning code was not taking into account the old default for AO
bounces.
April 6, 2021, 13:02 (GMT)
Fix render crash in some .blend files after Persistent Data changes

Must always clear recalc flags, even if no editors use them, the depsgraph
execution itself also depends on them.
April 6, 2021, 10:06 (GMT)
Compositor: Add Streaming Operator for NodeOperationBuilder.

For debugging purposes to convert the internal state of the
NodeOperationBuilder to a graphviz.

Usage:

std::cout << *this << "n";

Inside any method of the NodeOperationBuilder.
April 6, 2021, 09:14 (GMT)
Fix T86932: Curve: pick shortest path missing update of active point drawing

For curves, we need to tag the curve ID_RECALC_COPY_ON_WRITE for batch
cache update (same as in {rB24b2fe50f3ec}).

Maniphest Tasks: T86932

Differential Revision: https://developer.blender.org/D10826
April 6, 2021, 09:06 (GMT)
Fix T84623: Curve/Surface force not working in normal direction

Tweaking e.g. a field strength would then not use the curve/surface
normal anymore [but the object center instead].

If a curve has a forcefield with effector shape Curve (in code its shape
is PFIELD_SHAPE_SURFACE then), it wil get a SurfaceModifier.

Changing properties will free the SurfaceModifierData's bvhtree and mesh
And these dont get copied along when doing the CoW copy, these are
explicitly set to NULL. So this was also failing for meshes, not just
curves.

Without the mesh & bvhtree though, get_effector_data() will not set the
EffectorData's normal correctly (it is closest_point_on_surface() which
does this). And without the right EffectorData's normal, the effector
will of course work unexpected.

Going in and out of editmode made this work because that goes down this
route:
- BKE_object_handle_data_update
- BKE_displist_make_curveTypes
- do_makeDispListCurveTypes
- curve_calc_modifiers_post
-- BKE_mesh_new_nomain_from_curve_displist
-- we then have our desired updated mesh from the curve
-- this will also call the SurfaceModifiers deformVerts [which - given we
have a valid mesh - will update the bvhtree properly]

Also note that _animating_ the effector actually works, (have not done
the deep dive why this works, assume the curve geometry is updated in
this case)

So, now just carefully tag the curve ID_RECALC_GEOMETRY in
rna_FieldSettings_update for this specific case.

Maniphest Tasks: T84623

Differential Revision: https://developer.blender.org/D10092
April 6, 2021, 07:57 (GMT)
Fix T86175: Missing viewport update when toggling HDRI preview

Caused by rB0f95f51361d7.

Similar to T85515, T84717, T85543 and their related fixes.
In this case, add missing shading notifier as in rB9274bd457a25.

Reviewed By: brecht, lichtwerk

Maniphest Tasks: T86175

Differential Revision: https://developer.blender.org/D10604
April 6, 2021, 06:39 (GMT)
Suppress compiler warning.
April 6, 2021, 04:59 (GMT)
Fix T48167: Mesh select random factor is not accurate

Selecting random percentage would not reliably guarantee the precise
percentage of selected elements now randomize an index array instead
and use the precise number of elements from this array.

Note that this change has only been made to edit-mesh
and should be applied to all random selection operators.
April 6, 2021, 03:08 (GMT)
Fix T87187: Area.type & ui_type empty area access fails

Reading Area.type & ui_type printed an error from `pyrna_enum_to_py`
and returned an empty string.

As empty is a valid value, include it in the property enum list.
April 5, 2021, 21:28 (GMT)
Py API Docs: Update sphinx and theme versions
April 5, 2021, 17:28 (GMT)
BLI: fix axis order in 'BLI_array_iter_spiral_square'

x and y were inverted.
April 5, 2021, 13:48 (GMT)
3D View Utils: Add 'margin' parameter to 'ED_view3d_depth_read_cached'

Matches the alternative function ED_view3d_autodist_depth, but is more
efficient since it uses the cache.

No functional changes.
April 5, 2021, 12:05 (GMT)
Cycles: update Light Paths preset

* Add Fast GI / AO bounces to presets
* Add Default preset matching defaults
* Add Fast Approximate GI preset
* Lower Full GI depths to 32
April 5, 2021, 12:05 (GMT)
Render: faster animation and re-rendering with Persistent Data

For Cycles, when enabling the Persistent Data option, the full render data
will be preserved from frame-to-frame in animation renders and between
re-renders of the scene. This means that any modifier evaluation, BVH
building, OpenGL vertex buffer uploads, etc, can be done only once for
unchanged objects. This comes at an increased memory cost.

Previously there option was named Persistent Images and had a more limited
impact on render time and memory.

When using multiple view layers, only data from a single view layer is
preserved to keep memory usage somewhat under control. However objects
shared between view layers are preserved, and so this can speedup such
renders as well, even single frame renders.

For Eevee and Workbench this option is not available, however these engines
will now always reuse the depsgraph for animation and multiple view layers.
This can significantly speed up rendering.

These engines do not support sharing the depsgraph between re-renders, due
to technical issues regarding OpenGL contexts. Support for this could be added
if those are solved, see the code comments for details.
April 4, 2021, 13:20 (GMT)
Cycles: make AO bounces settings more discoverable

* Move out of Simplify panel, into Light Paths > Fast Global Illumination
* Add separate boolan setting to enable/disable it separate from Simplify
* Default AO bounces to 1
* Put ambient occlusion distance in this panel as well
April 3, 2021, 16:32 (GMT)
Fix inversion of snapping failing in measure tool

Comparison of event change has to be more specific and compare the x and y
values of the mouse as well.
April 3, 2021, 15:48 (GMT)
Fix T87162: Measure Tool Not Working

The non-enabled gizmo was overwriting the projected coordinate value.
April 2, 2021, 21:26 (GMT)
UI: Align Spreadsheet Booleans to Center

Aligning spreadsheet Booleans to the middle of their cells.

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

Reviewed by Hans Goudey
Revision 46d7505 by Hans Goudey
April 2, 2021, 19:35 (GMT)
Geometry Nodes: Separate grid primitive X and Y size

Since you can already specify a separate size for X and Y with the
grid node, it makes sense to be able to specify the size separately
for each axis also.

This also avoids some awkward math with a Transform node afterwards
when you want a specific size for each direction.

Versioning (except for animation and drivers) is handled in this commit.

Differential Revision: https://developer.blender.org/D10834
April 2, 2021, 19:23 (GMT)
GPencil: Prevent RNA assignment of invalid materials in modifiers

Materials used in grease pencil modifiers have the requirement that they
are already used on the object. In the UI dropdown, this restriction is
ensured by calling uiItemPointerR with appropriate searchptr and
searchpropname, so only giving the user the choice of materials already
used on the object.

From python though, it was still possible to assign materials outside of
this this restriction. This led to reports like T86981 [which have been
partially solved by clamping the material index in the modifier code to
be in the valid range].

Now make sure we dont assign "invalid" materials through RNA by
appropriate RNA pointer functions.

This also adds a proper warning (red, alert) in case of the LineArt
modifier if such a invalid material is still in the file [same as other
modifiers already do].

Differential Revision: https://developer.blender.org/D10873
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021