Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 323 / 5574

March 31, 2021, 09:00 (GMT)
Cleanup: use constexpr for num channels.

Don't assume all compilers are smart. MSVC doesn't inline the call away like CLANG and GCC did.
March 31, 2021, 07:46 (GMT)
Fix build error on windows

Error was caused by using `#if` directive in `PyDoc_STRVAR` macro.

This partially reverts 1e4c35d910e18858c41924f9e27ef8e1070cbd0a
March 31, 2021, 07:27 (GMT)
Cleanup: Remove SEQ_CURRENT_BEGIN macro

Use LISTBASE_FOREACH instead.
SEQ_CURRENT_BEGIN did null checks, so now these must be explicit.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D10823
March 31, 2021, 06:47 (GMT)
PyDoc: quiet warning with literalinclude including blank lines

Files that only contain a doc-string still included the last blank line,
since this normally contains code examples.

There are some cases where only a docstring exists
which made sphinx report warnings.
March 31, 2021, 06:43 (GMT)
PyDoc: fix indentation with multi-line property descriptions

New lines were written without indentation,
causing invalid RST to be generated.
March 31, 2021, 06:42 (GMT)
PyDoc: correct sphinx syntax for gpu.state.blend_set
March 31, 2021, 06:05 (GMT)
Cleanup: use early return for imbuf image loader functions

Most imbuf loaders already did this, use early exit for the remaining
loaders that didn't.
March 31, 2021, 04:29 (GMT)
WM: use data-path utility functions for WM operators

Use utility functions to decompose data paths and resolve the
RNA property from a data-path.
Replaces in-line string manipulation and RNA access.

This allows more complex data paths to be used, where previously string
literals in a data path could break the simple data-path handling logic.
March 31, 2021, 04:03 (GMT)
PyAPI: add bl_rna_utils.decompose_data_path

Utility function for splitting an RNA path, to be used by `bpy.ops.wm.*`
March 31, 2021, 04:01 (GMT)
Fix bl_rna_utils._TokenizeDataPath function argument extraction error

Converting functions with single arguments to a string
added an additional comma.
March 31, 2021, 02:04 (GMT)
Cleanup: improve navigation gizmo flag use

Flag check for V3D_LOCK_CAMERA used boolean style assignment to a char,
which worked with this flag but could fail if other flags are added
that use this convention in the future.

- Add static type checks for values so any change to DNA types
will need to be made in the navigation gizmo too.
- Move camera lock check from `rv3d` to `v3d`,
as this isn't stored in the region data.
March 30, 2021, 21:09 (GMT)
UI: Gizmo Button to Lock Camera to View

2D gizmo navigation button that toggles 'Lock Camera to View' while in Camera View.

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

Reviewed by Campbell Barton
March 30, 2021, 19:23 (GMT)
Cleanup/Refactor: Unify functions that redraw the depth buffer

Now `ED_view3d_backbuf_depth_validate`, `ED_view3d_draw_depth` and
`ED_view3d_draw_depth_gpencil` are unified in `ED_view3d_depth_override`.

This new function replaces `ED_view3d_autodist_init`.

Also, since `ED_view3d_depth_update` depends on the render context, and
changing the context is a slow operation, that function also was removed,
and the depth buffer cached is now updated inside the new unified drawing
function when the "bool update_cache" parameter is true.

Finally `V3D_INVALID_BACKBUF` flag has been renamed and moved to
`runtime.flag`.

Differential revision: https://developer.blender.org/D10678
March 30, 2021, 19:13 (GMT)
UI: Skip undo steps when changing properties of the 3d cursor

Differential revision: https://developer.blender.org/D10695
March 30, 2021, 19:10 (GMT)
Fix: buttons whose property contains an 'owner_id' ignore rna undo check

Introduced in rBce462fa1 but harmless since curretly only `StructRNA`
without `owner_id` have the `STRUCT_UNDO` flag cleared.

So this commit does not bring any functional changes but it will be
useful for {D10695}.
March 30, 2021, 17:43 (GMT)
Fix T87058: GPencil Cutter delete all strokes if they are selected and the layer is locked

The problem was produced because the strokes were selected, but the loop to clear this flag before applying cutter was using unlocked layers only, and the protected layer flag was not reset.

Now, the flag is reset for all layers, locked and unlocked.
March 30, 2021, 15:15 (GMT)
Nodes: Expose multi input socket in python API

It was not possible to determine if a socket was multi input previously
with BPY. This patch exposes the flag as a read-only property of a node
socket. This is important for addons which automatically add connections
between nodes.

Differential Revision: https://developer.blender.org/D10847
Revision 6ea09db by Hans Goudey
March 30, 2021, 15:03 (GMT)
Cleanup: Improve comment
Revision e5f0d17 by Ankit Meel
March 30, 2021, 14:58 (GMT)
CMake: issue warnings when changing options

Only done in top level CMakeLists, and platform_apple.

Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D10343
Revision 9f323e9 by Hans Goudey
March 30, 2021, 14:56 (GMT)
UI: Bring back hover shortcuts for mesh modifiers

Earlier last year, the shortcuts on hover were built as a way to regain
speed lost by removing the "Apply" and "Copy" buttons from the panel.
For the active modifier concept introduced for geometry nodes, the
shortcuts were changed to only affect the active modifier.

Based on feedback, this change slowed down many people's interaction
with the modifier stack so the UI team decided to return hover shortcuts
for modifier panels.

The downside of this change is that it looks like the active modifier is
"selected" and it could be confusing that the modifier shortcuts don't
apply to it. We can explore different ways to display the active status
to address this.

Ref T87012
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021