Blender Git Commits

Blender Git "master" branch commits.

Page: 194 / 5574

July 29, 2021, 13:08 (GMT)
Data-block Preview: Create preview using current frame

The preview was always using frame 1, but maybe the object has changed and it's better create preview using the current frame.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D12018
July 29, 2021, 12:46 (GMT)
Cleanup: Remove debug-only code
July 29, 2021, 12:32 (GMT)
Fix building without Cycles logging

Ideally can use assert() checks instead of suppressing the check entirely,
but for now just fix compilation error quickly.
July 29, 2021, 11:11 (GMT)
Cleanup: Fix build warning

Introduced in 3964785a1458
July 29, 2021, 10:46 (GMT)
cleanup: editor_image : Remove unused draw functions

These functions are unused currently..

Reviewed By: deadpin, jbakker

Differential Revision: https://developer.blender.org/D11968
July 29, 2021, 10:28 (GMT)
Fix Cycles crash with fluid object motion blur disabled

Motion attributes expects mesh to have non-zero number of motion steps,
which was violated in the case when fluid mesh had motion blur disabled.

This is a bit of annoying fix, because of the order of updates. More
ideal solution would be to handle cached and fluid velocities in the
sync_mesh_motion() which ensures all the dependencies between settings.
July 29, 2021, 09:38 (GMT)
UI: Fix time labels drawing

Calculate frequency of time/frame label drawing, such that labels have
at least 10px margin and don't overlap.

Change timecode format:
- Use at least `mm:ss` format
- Don't display frames if all labels would end with +00

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D11792
July 29, 2021, 09:38 (GMT)
VSE: don't snap by default

Snapping by default goes against convention, so this setting was
re-evaluated. Also snapping by default can conflict with new image
transform system, see T90156

There wasn't consensus, so disable snapping by default to follow
established convention.

ref T89665

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D12054
July 29, 2021, 09:38 (GMT)
VSE: Change grid line drawing

Add overlay option to disable grid drawing.
Reuse drawing code from other editors (timeline editor)
Add argument `display_minor_lines` to function
`UI_view2d_draw_lines_x__discrete_frames_or_seconds`
This way minor line drawing can be disabled and so it doesn't cause
too much visual noise. Also spacing seems to be too fine, so VSE uses 3x
what is defined in preferences.

Reviewed By: fsiddi, Severin

Differential Revision: https://developer.blender.org/D11790
Revision a70f37b by Falk David
July 29, 2021, 08:42 (GMT)
Fix T89952: GPencil channel box selection offset

The channel box selection was offset for grease pencil layers.

This is a proposed fix by @yann-lty

Before:
{F10227973}

After:
{F10227974}

Reviewed By: #grease_pencil, antoniov

Maniphest Tasks: T89952

Differential Revision: https://developer.blender.org/D11962
July 29, 2021, 04:32 (GMT)
Fix memory leaks in Python gizmo get/set handlers
July 29, 2021, 04:11 (GMT)
Fix gpu.types.GPUTexture crash when the size argument was too big

Missing length check on the size argument before copying it
into a fixed size buffer.
July 29, 2021, 03:41 (GMT)
Cleanup: use PyC_AsArray_FAST function where possible

Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1.
July 29, 2021, 01:09 (GMT)
PyAPI: support multi-dimensional arrays for bpy.props vector types

- Multi-dimensional boolean, int and float vector types are supported.
- A sequence of int's for the "size" is used to declare dimensions.
- Nested sequences are required for default arguments.

Now it's possible to define matrix properties, for e.g:

bpy.props.FloatVectorProperty(size=(4, 4), subtype='MATRIX')
July 29, 2021, 01:04 (GMT)
PyAPI: add multi-dimensional array conversion utility functions

Add array conversion functions that take dimension arguments.

- PyC_AsArray_Multi (version of PyC_AsArray).
- PyC_Tuple_PackArray_Multi_* (version of PyC_Tuple_Pack_*).
July 29, 2021, 00:52 (GMT)
Cleanup: spelling
July 28, 2021, 18:16 (GMT)
Fix T75028: Improved Font Names in File Manager

When viewing font files in the File Manager, this patch uses the font's
family and style names to show the same type of string shown to users
in operating system lists. For example "Book Antiqua Regular" instead
of "BKANT.ttf"

see D12020 for details and examples.

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

Reviewed by Campbell Barton and Julian Eisel
July 28, 2021, 17:27 (GMT)
Cycles: remove WITH_CYCLES_DEBUG, add WITH_CYCLES_DEBUG_NAN

WITH_CYCLES_DEBUG was used for rendering BVH debugging passes. But since we
mainly use Embree an OptiX now, this information is no longer important.

WITH_CYCLES_DEBUG_NAN will enable additional checks for NaNs and invalid values
in the kernel, for Cycles developers. Previously these asserts where enabled in
all debug builds, but this is too likely to crash Blender in scenes that render
fine regardless of the NaNs. So this is behind a CMake option now.

Fixes T90240
July 28, 2021, 16:16 (GMT)
Cleanup: Remove unnecesary undefs

Macros `SEQ_ALL_END` and `SEQ_ALL_BEGIN` no longer use `seq->tmp`.
Therefore they are safe to use regardless from where they are called.
Revision 40ef71f by Julian Eisel
July 28, 2021, 16:05 (GMT)
Assets: Improve error message when "Clear Asset" fails

When using "Clear Asset" from the Asset Browser but with an asset
selected that is not stored in the current file, we can show a more
informative error message.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021