Blender Git Loki

Kaikki Blender Git kommitit.

Page: 855 / 8462

March 8, 2021, 13:25 (GMT)
Fix error in unused argument cleanup

Bad keyword argument rename from
9dc0c44aa102b5a7dae1fe92fd9105231ab1798c
March 8, 2021, 13:14 (GMT)
Fix Cycles CUDA build error with Visual Studio 2019 v16.9

Something in this update broke the floor() function in CUDA, instead use
floorf() like we do everywhere else in the kernel code. Thanks to Ray
Molenkamp for identifying the solution.
March 8, 2021, 13:06 (GMT)
Fix Cycles CUDA build error with Visual Studio 2019 v16.9

Something in this update broke the floor() function in CUDA, instead use
floorf() like we do everywhere else in the kernel code. Thanks to Ray
Molenkamp for identifying the solution.
March 8, 2021, 13:05 (GMT)
Fix Cycles CUDA build error with Visual Studio 2019 v16.9

Something in this update broke the floor() function in CUDA, instead use
floorf() like we do everywhere else in the kernel code. Thanks to Ray
Molenkamp for identifying the solution.
March 8, 2021, 12:51 (GMT)
Fix T86210: No preview icons for non-8bit images

It looks like we never generated correct icon previews for images with
float_rects (non-8bit-images). Images from the report were 16bit pngs.

In this case, `icon_preview_startjob` would return early (it only
checked if the ImBuf `rect` was NULL -- which is the case if it has a
`rect_float` instead). This is not neccessary since `icon_copy_rect` is
perfectly capable of taking float rects.

Now correct the check and only return early if both `rect` & `rect_float`
are NULL.

note: this will not refresh icon previews from existing files
automatically. For this, use File > Data Previews > Clear Data-Block
Previews.

Maniphest Tasks: T86210

Differential Revision: https://developer.blender.org/D10601
March 8, 2021, 12:49 (GMT)
Merge branch 'master' into compositor-cryptomatte-workflow
March 8, 2021, 12:47 (GMT)
Fix T86373: crash picking colors in geometry nodesockets

Caused by {rB85421c4fab02}.

Above commit treated `SOCK_RGBA` and `SOCK_STRING` the same in
`std_node_socket_draw`.
That would turn a RGBA button into a text button (for attribute search),
leading to trouble.
Note these were just treated the same prior to above commit because both
were doing the layout split.

Now just give RGBA sockets their own case.

Maniphest Tasks: T86373

Differential Revision: https://developer.blender.org/D10646
March 8, 2021, 12:41 (GMT)
Cleanup: Change extension .cpp to .cc
March 8, 2021, 12:08 (GMT)
VSE: Automatic proxy building

Add `Proxy Setup` enum to user preferences with 3 choices: Manual, For Added strips and Automatic.
With `For Added strips` Only build proxies when adding movie strips.
With `Automatic` setting, proxies are built when preview size changes as well.

TODO:
- Decide what to do when workspace has multiple previews with different preview sizes. See `seq_get_preview_size()`
- Solution may be to change current design to allow only one size or just build multiple sizes.

Additional possible improvements:
- Cancel running job if preview size is changed while building proxies
- Use proxy of different size while building proxies for new size. it would be best to do after some refactoring, so in separate patch.
ref T85469

Maniphest Tasks: T85469

Differential Revision: https://developer.blender.org/D10363
March 8, 2021, 11:47 (GMT)
VSE: Simplify proxy settings

- Remove Full Render size from VSE preview size. Use just 100% instead
- Add Use Proxies checkbox to control whether proxies are used globally
- Move preview size to top so it is most prominent
- Set default to 100% preview size and use proxies (could be separate patch as well)

Design task: T85469

{F9735445}

No change has been done to individual strip setting as users may need to turn proxies on/off individually.
I think it would be best if size selection will be managed when automatic proxy building is enabled. In that case proxy panel can be simplified a lot. This is probalby better to leave for separate patch

Maniphest Tasks: T85469

Differential Revision: https://developer.blender.org/D10362
March 8, 2021, 11:45 (GMT)
Revert "Fix modernize-raw-string-literal complaints from clang-tidy."

This reverts commit 7a34bd7c2886dfc812345c0b1649d63a9ee4666f.

Broke windows build. Can apparently fix with /Zc:preprocessor flag
for windows but need a Windows dev to make that fix.
March 8, 2021, 10:55 (GMT)
Cleanup: Removed duplicate slash in macOS SDK path

Cleanup although it's harmless.
March 8, 2021, 10:37 (GMT)
Geometry Nodes: support Vector Rotate node

Differential Revision: https://developer.blender.org/D10410
March 8, 2021, 10:18 (GMT)
[WIP] Use H264 codec for proxies

Same patch as D10394, but using H264 codec with small GOP size (2 frames in this case).

Main reason to use H264 is smaller filesize, current patch produces about 3x smaller files.
Playback is also about 1.5x faster than MJPEG

Complexity of this patch is much higher though, because encoder must work in own threadpool and encode frames with own gop size.
This means that scaled frames from encoder must be allocated per packet, which leads to worse performance overall. Patch is still about 3x faster than original. Interesting thing is that there is no performance improvement when running transcoding in more than 4 threads.

Possible ways to improve performance are to reuse memory for packets and frames, which would require redesign, where threads would wait for data to be written.
Another possibly much cleaner method would be to decode portions of input into multiple streams and remux these into proxy file.
In both cases managing complexity would be fairly important as it can get out of hand quite quickly.

Maniphest Tasks: T85469

Differential Revision: https://developer.blender.org/D10630
March 8, 2021, 09:47 (GMT)
Particles: change default name to "ParticleSystem"

Since {rB7a6b46aac56b}, particle systems were named "ParticleSettings"
by default, same as particle settings themselves. These are not the same
thing and their names should reflect that.

Issue came up in T86366.

Now name them "ParticleSystem" by default, name uniqueness is preserved
for both system and settings.

Maniphest Tasks: T86366

Differential Revision: https://developer.blender.org/D10641
March 8, 2021, 07:52 (GMT)
Cleanup: Remove unused variable.
March 8, 2021, 07:47 (GMT)
Fix T86026: Crash Opening Cryptomatte File.

But this time the root cause. Writing undo files is done in a separate
thread. This patch moved the updating of the matte_id when the user
actually changes the matte.
March 8, 2021, 07:28 (GMT)
Revert "Fix T86026: Crash Opening Cryptomatte File."

This reverts commit 7f3649874070de38131263317d02906d50279f93.
March 8, 2021, 03:54 (GMT)
Cleanup: use ofs instead of offs as an abbreviation for offset

Used for local structs/variables,
since `ofs` is by far the most widely used abbreviation.
March 8, 2021, 03:44 (GMT)
Cleanup: rename offs to offset
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021