Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 682 / 5574

July 13, 2020, 13:09 (GMT)
VSE: Python API, allow creation of VSE Movie strips with missing file

It was already possible to create Sound and Image strips that reference
non-existing files. Now it's also possible to create Movie strips
referencing missing files via the Python API call
`Sequences.new_movie()`. In this case, the duration of the strip will be
set to 1 frame.

Note that this commit does not change anything in the user interface.

The Python API of the `MovieStrip` class is extended with a function
`reload_if_needed()`. This function only performs disk I/O if the movie
strip cannot produce frames, that is either when its filepath points to
a non-existing file, or when the video sequence editor has not been
shown yet (for example because it is in an inactive workspace).

This allows for the following:

```
import bpy

scene = bpy.context.scene
vse = scene.sequence_editor_create()

filepath = bpy.path.abspath('//demo.mkv')
strip = vse.sequences.new_movie("movie", filepath,
channel=2,
frame_start=47,
file_must_exist=False)
strip.frame_final_end = 327
```

This will create a new movie strip, even when `demo.mkv` does not exist.

Once `demo.mkv` has appeared at the expected location, either
`strip.reload_if_needed()` or `strip.filepath = strip.filepath` will
load it.

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

Reviewed By: Sergey, ISS
July 13, 2020, 12:29 (GMT)
LibOverride: add more polling checks to operators not supposed to work on overrides.

This is long work, we are still likely missing a lot of cases...
July 13, 2020, 12:29 (GMT)
Cleanup: remove public unused function.
July 13, 2020, 11:59 (GMT)
Fix T78855: Knife tool crashes when the geometry has no face

I don't see the need for a BVH Tree to have root but not have leafs.
But apparently this case is possible.
July 13, 2020, 11:59 (GMT)
Optimization: Use dedicated function to restore customdata

Called when canceling a transform operation.
July 13, 2020, 11:58 (GMT)
Cleanup: move unchanged condition out of loop
July 13, 2020, 11:48 (GMT)
Fix Extrude Manifold losing original UV
July 13, 2020, 10:51 (GMT)
RNA code cleanup: Fix wrong usages of `rna_idproperty_check()`.

This function is more expansive than the simpler `rna_ensure_property()`
one, and should only be used when IDProperty data is actually needed.

If one only needs to ensure it has a valid PropertyRNA pointer,
`rna_ensure_property()` is much more efficient.

Also add compiler warnings when results of those functions are unused,
this should never be the case.
July 13, 2020, 10:51 (GMT)
RNA property management: tweak to 'is set' information.

Only consider a full IDProperty as set if it actually exists in given
PointerRNA data.
July 13, 2020, 10:51 (GMT)
I18n utils: fix broken case when 'settings' argument is default NULL one.
July 13, 2020, 10:48 (GMT)
Cleanup: quiet warnings by adding const in some places

The warnings were introduced in rB725973485a909c2b732c5.
July 13, 2020, 09:27 (GMT)
Clang Tidy: enable readability-non-const-parameter warning

Clang Tidy reported a couple of false positives. I disabled
those `NOLINTNEXTLINE`.

Differential Revision: https://developer.blender.org/D8199
July 13, 2020, 08:51 (GMT)
BLI: fix constructor regression for Vector and Array

This was introduced in rB403384998a6bb5f428e15ced5.
July 13, 2020, 08:49 (GMT)
BLI: don't allow mutable span of initializer list
July 13, 2020, 08:40 (GMT)
Cleanup: fix clang tidy warning

The code was actually correct, but clang tidy complaint about
using the Vector after it was moved from.
July 13, 2020, 08:34 (GMT)
Cleanup: typo
July 13, 2020, 01:08 (GMT)
Sky: Code style and formatting fixes

Differential Revision: https://developer.blender.org/D8091
July 13, 2020, 01:08 (GMT)
Cycles: Clamp Sky Texture altitude to avoid numerical issues

Differential Revision: https://developer.blender.org/D8091
July 13, 2020, 01:08 (GMT)
Cycles: Account for Sky Texture mapping in the sun sampling code

Differential Revision: https://developer.blender.org/D8091
July 13, 2020, 01:08 (GMT)
Cycles: Change precomputed Sky Texture mapping to prioritize the horizon

Differential Revision: https://developer.blender.org/D8091
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021