Blender Git Commits

Blender Git "master" branch commits.

Page: 478 / 5574

November 24, 2020, 15:05 (GMT)
Merge remote-tracking branch 'origin/blender-v2.91-release'
November 24, 2020, 12:22 (GMT)
Fix T80748: Render Emissive Colors in Compositor Backdrop

This change will use the image engine to draw the backdrop of the compositor. With this patch the alpha blending will be done in Linear Scene Reference space and shows pure emissive colors.

See differential for an example image.

**Technical changes**

As only the backdrop drawing is done using the draw manager there are some technical changes.
1. The overlay buffer is partly drawn outside the draw manager. When drawing the backdrop image the overlay buffer needs to be masked to simulate premultiplied alpha under.
2. The backdrop of the node editor is done in region pixel space. A `DRWView` is constructed with this space.
3. UDIM textures uses world position to generate the UV coordinates. This has been implemented more strict by the `IMAGE_DRAW_FLAG_USE_WORLD_POS`. When the flag isn't used the local coordinates are used to generate the UV coordinates what is image space.
4. The draw manager now checks the actual `eSpaceType` of the space data to use different code paths. In the future the movie clip editor will be added.

NOTE: The preview images in nodes are drawn in display space and cannot show pure emissive colors. As preview images are used on more locations it is best to fix this in a separate patch.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D9451
November 24, 2020, 11:40 (GMT)
Fix T77261: Multires creates spikes when subdividing ngons

The spikes were caused by non-initialized tangent matrix used during
smoothing process. The reason tangent matrix was not initialized was
because wrong usage of API: n-gons should pass corner of 0 to the
matrix construction function.

Corrected usage of the API and added assert() to help catching such
kind of non-initialized issues easier.
November 24, 2020, 11:27 (GMT)
Graph Editor: fix keyframe not activating in certain cases

When clicking on an already-selected keyframe, mark it as active if the
click caused the previously-active keyframe to become deselected.

When clicking on a key in the graph editor, it is selected and all other
keys are deselected. If that key was already selected before the click,
it would not become the active keyframe. This is now fixed.

Reviewed by: Severin

Differential Revision: https://developer.blender.org/D9639
November 24, 2020, 10:46 (GMT)
Fix T82962: Crash changing lattice resolution with Vertex Group

Regression introduced by {rB042143440d76}. The deform group lookup was
performed on the wrong object. Before the lookup was performed on
the lattice object. This patch changes this back.

Reviewed By: Bastien Montagne

Differential Revision: https://developer.blender.org/D9638
November 24, 2020, 10:13 (GMT)
Animation: Remove debug prints

Remove accidentally-commited debug prints.

No functional changes.

Reviewed by: sergey

Differential Revision: https://developer.blender.org/D9637
November 24, 2020, 09:42 (GMT)
Fix Python API docs for the render API

The API doc for free_blender_memory() was used in
get_preview_pixel_size()

Issue introduced in 549468365157a075949f2d4b8d9496ff.
November 24, 2020, 05:21 (GMT)
Outliner: Switch properties tabs only on icon click

According to feedback the outliner to properties editor tab switching
was annoying when it always changed tabs on selection, especially for
selecting individual objects. This limits the tab switching behavior to
only when the icons in the outliner are selected.
November 24, 2020, 01:27 (GMT)
UI: Batch Rename Layout Improvements

Improvements to the layout of the Batch Rename dialog.

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

Reviewed by Reviewed by Hans Goudey
November 24, 2020, 01:22 (GMT)
UI: Add Trackpad Smooth Scrolling for Popovers

Adds smooth scrolling with the trackpad for popovers. Also fixes the position of the scroll arrows on high-DPI.

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

Reviewed by Brecht Van Lommel
November 24, 2020, 00:56 (GMT)
UI: Block Safety Not Scaled Correctly

Layout block safety sizes were not scaled correctly with interface scale.

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

Reviewed by Brecht Van Lommel
November 24, 2020, 00:30 (GMT)
Speedups for new boolean. Better hash function for verts.

The existing hash function didn't work well with Set's method of
masking to the lower bits, because many verts have zeros in the
lower bits.
Also, replaced VectorSet with Set for Vert deduping.
Revision b0a9081 by Jeroen Bakker
November 23, 2020, 15:42 (GMT)
Fix T82884: Cycles Compilation Error OpenCL/NanoVDB

Recent changes introduced `acc` parameter into the texture read
functions. When nanovdb isn't enabled this leads to compilation errors
as the `acc` variable wasn't defined. OpenCL only compiles needed
features what made it more prominent.

Reviewed By: Patrick Mours

Differential Revision: https://developer.blender.org/D9629
Revision 8351760 by Jeroen Bakker
November 23, 2020, 15:36 (GMT)
Cycles: Remove Compilation Warning

ROCm 3.9 already defined `NULL`. This patch will first check if it was
already defined to remove compilation warnings.

NOTE: This doesn't add official support for ROCm as it still fails to
render correctly (crashes with default cube).

Reviewed By: Brecht van Lommel

Differential Revision: https://developer.blender.org/D9610
Revision 1f09dcc by Christoph Lendenfeld
November 23, 2020, 14:26 (GMT)
Cleanup: Animation, split `graph_edit.c` into separate files

Split some of the code of `graph_edit.c` into:
* `graph_view.c`: preview range, view all, view selected etc.
* `graph_slider_ops.c`: the decimate modal operator code.

The latter file will be extended later with more slider-based operators.

Maniphest Tasks: T81785

Reviewed By: sybren

Differential Revision: https://developer.blender.org/D9312
November 23, 2020, 14:25 (GMT)
Tracking: Cleanup, typos and spelling in DNA comments
November 23, 2020, 11:48 (GMT)
Animation: New Euler filter implementation

This new discontinuity filter performs actions on the entire Euler
rotation, rather than only on the individual X/Y/Z channels. This makes
it fix a wider range of discontinuities, for example those in T52744.

The filter now runs twice on the selected channels, in this order:
- New: Convert X+Y+Z rotation to matrix, then back to Euler angles.
- Old: Add/remove factors of 360� to minimize jumps.

The messaging is streamlined; it now reports how many channels were
filtered, and only warns (instead of errors) when there was an actual
problem with the selected channels (like selecting three or more
channels, but without X/Y/Z triplet).

A new kernel function `BKE_fcurve_keyframe_move_value_with_handles()` is
introduced, to make it possible to move a keyframe's value and move its
handles at the same time.

Manifest Task: T52744

Reviewed By: looch

Differential Revision: https://developer.blender.org/D9602
Revision 36426b0 by Ankit Meel
November 23, 2020, 11:04 (GMT)
CMake/macOS: Replace -Xlinker with -Wl.

Causes link issues on Xcode's "New Build System" which was introduced
in Xcode 10 and is default on Xcode 12.
https://devtalk.blender.org/t/16273

Differential Revision: https://developer.blender.org/D9624
Reviewed by: brecht, #platform_macos
Revision 1318eaf by Ankit Meel
November 23, 2020, 11:04 (GMT)
Cleanup: CMake: use string(APPEND..), not set(..)

Left out in {rB7f28a99dd5a57216fb477d844ae1fec5510ad5d5}
November 23, 2020, 10:56 (GMT)
Fix T82849: Assert When Unlinking "Edit Source" Text Data-block.

Simplify and sanitize handling of usercounts for Text IDs generated
trhough `BKE_text_load_ex`.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021