Blender Git Loki

Blender Git commits from all branches.

Page: 676 / 2888

October 7, 2020, 19:32 (GMT)
Fix subclass links
October 7, 2020, 18:21 (GMT)
Fix class links
October 7, 2020, 17:55 (GMT)
Fix ops indent
October 7, 2020, 17:18 (GMT)
Merge branch 'asset-metadata' into asset-browser
October 7, 2020, 17:17 (GMT)
Fix compile error after last merge
October 7, 2020, 17:16 (GMT)
Merge branch 'master' into asset-metadata
October 7, 2020, 17:15 (GMT)
PyDoc: Fix 90% of sphinx-build warnings

This is a second attempt at rB953c232db31f1a76f99ceb43119681ce0df1ab17 which got reverted

Changes:

- Document `bpy.ops.*` as classes and not modules (`bpy.ops`) is still a module. Changes here were also made to increase the indent to reduce the documentation scope (sphinx was complaining because to class functions were the same).
- Remove `.. module:: bpy.types` from each bpy type page. Sphinx complains because there are multiple modules with the same name. Changes are are made here to document as a class.
- Change the bpy data module from `.. module:: bpy` to`.. module:: bpy.data`

These changes were tested to insure the urls and xrefs were the same (see rBaead4b3cab472b96fa0e07c289979c28f5fc22a5)

Total errors went from 1263 to 120. The remaining errors regarding duplicate object descriptions are a bit harder to fix.

Differential Revision: https://developer.blender.org/D9139
October 7, 2020, 15:10 (GMT)
Merge branch 'master' into greasepencil-edit-curve
October 7, 2020, 15:10 (GMT)
Merge branch 'master' into greasepencil-object
October 7, 2020, 14:41 (GMT)
Animation: always try to match the existing curve when inserting keys

Previously Blender would only match the existing curve slope when the
to-be-inserted key value was already very close to the curve. This check
is now removed, allowing for sliders in the graph editor to subtly
change the curve, and for keyframes added with ctrl+click to follow the
curve better.
October 7, 2020, 10:46 (GMT)
Fix T76595: Indicate the Active Keyframe in Graph Editor

Currently there is a panel that says "Active Keyframe" for numerically editing one keyframe's values, but in the code there is no concept of the "active keyframe."

This patch adds an "active keyframe index" to each FCurve, and displays it with a theme color for the active vertex (which didn't exist before) if the FCurve is active.

{F8536092 size=full}

The active keyframe is not currently set for select operations other than basic click-select, which mirrors the behavior in the 3D view.

Reviewed By: Severin, looch

Maniphest Tasks: T76595

Differential Revision: https://developer.blender.org/D7737
October 7, 2020, 08:22 (GMT)
Windows Release: Script creation of MSIX package

Script create_msix_package.py will download the ZIP file
from the given URL. It will create the MSIX package
with the version number and publisher ID given.

Strongly recommended are the path to a valid PFX file, and the
password to use that PFX file. These are needed for signing
the resulting MSIX package. The signing step is optional though,
but the resulting MSIX package cannot be installed outside of the
Microsoft Store

Example

set VERSION=2.83.2.0
set URL=https://download.blender.org/release/Blender2.83/blender-2.83.2-windows64.zip
set PUBID=CN=PUBIDHERE
set PFX=X:pathtocert.pfx
set PFXPW=pwhere

python create_msix_package.py --version %VERSION% --url %URL% --publisher %PUBID% --pfx %PFX% --password %PFXPW%

Requirements:
* Python default from the Microsoft Store should do (3.8)
* requests can be installed with `pip install requests`

Note that for an LTS release that gets uploaded to its own LTS application release
in the store you need to specify the `--lts` switch on the command-line to the script.

Upon completion there will be a file with the
name blender-2.83.2.0-windows64.msix. In case PFX file and its password were
given on the command line MSIX package will also be signed for the Microsoft Store.

Related Wiki page: https://wiki.blender.org/wiki/Process/Release_On_Windows_Store

Reviewed By: jbakker

Maniphest Tasks: T77348, T79356

Differential Revision: https://developer.blender.org/D8310
October 7, 2020, 08:17 (GMT)
Cycles: Fix usage of memory barriers in split kernel

On user level this fixes dead-lock of OpenCL render on Intel Iris GPUs.
Note that this patch does not include change in the logic which allows
or disallows OpenCL platforms to be used, that will happen after the
kernel fix is known to be fine for the currently officially supported
platforms.

The dead-lock was caused by wrong usage of memory barriers: as per the
OpenCL specification the barrier is to be executed by the entire work
group. This means, that the following code is invalid:

void foo() {
if (some_condition) {
return;
}
barrier(CLK_LOCAL_MEM_FENCE);
}

void bar() {
foo();
}

The Cycles code was mentioning this as an invalid code on CPU, while in
fact this is invalid as per specification. From the implementation side
this change removes the ifdefs around the CPU-only barrier logic, and
is implementing similar logic in the shader setup kernel.

Tested on NUC8i7HVK NUC.

The root cause of the dead-lock was identified by Max Dmitrichenko.

There is no measurable difference in performance of currently supported
OpenCL platforms.

Differential Revision: https://developer.blender.org/D9039
October 7, 2020, 08:17 (GMT)
Fix T81459: Memory Leak Cycles Rendered Viewport

The external engine in the draw manager wasn't registered correctly.
This did not free the resources after the external engine was used.
October 7, 2020, 08:15 (GMT)
Fix T81218: Crash in pose mode using a driver on bendy bone Segment

The example file in T81218 has a driver that maps a bone's X-location to
the number of BBone segments. This caused a dependency cycle, which
resulted in bad thread serialisation, which caused the crash.

This patch breaks the dependency cycle `BONE_LOCAL` ?
`DRIVER(bones["Bone"].bbone_segments)` ? `BONE_LOCAL`. The 'Driver Data'
relation now points to `BONE_SEGMENTS` when the driven property starts
with `bbone_`.

Differential Revision: https://developer.blender.org/D9122
October 7, 2020, 08:10 (GMT)
Fix T80885: Texture paint camera project crashes after undo/redo

Unmatched ED_image_undo_push_{begin/end},
add doc-strings noting why this is needed.

Thanks to @Baardaap for the initial fix.
October 7, 2020, 08:06 (GMT)
Fix T80630: potential crash in volume grids in Eevee shaders

Found by address sanitizer.
October 7, 2020, 08:05 (GMT)
Fix T62504: Crash accessing depsgraph from evaluated view layer

Use correct owner_id types for depsgraph view_layer properties
instead of inheriting from the Depsgraph which is set to NULL.
October 7, 2020, 08:04 (GMT)
Fix T78653 Workbench: Broken Depth of Field in Viewport (Mac OSX)

The output layout was wrong and it's a mistery why it works on most
implementations since it's clearly a wrong usage.

Thanks @sebbas for helping narrowing down the issue.
October 7, 2020, 07:59 (GMT)
Fix T80426: Crash when deleting custom orientation

Indices referencing other orientations were not being updated,
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021