Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 98 / 5574

October 20, 2021, 10:38 (GMT)
Fix T91808: Batch Generate Previews fails

Caused by the Cycles-X merge.

The old style of tile rendering was removed, leaving the script to error
out trying to set the tile size.

Tile rendering came back in a new form (but only really relevant for
large resolution rendering), so now leave setting auto_tile & tile_size
alone (since previews are rendered at PREVIEW_RENDER_DEFAULT_HEIGHT 128
-- which should never make a difference here).

Maniphest Tasks: T91808

Differential Revision: https://developer.blender.org/D12937
Revision f605ce7 by Julian Eisel
October 20, 2021, 10:31 (GMT)
Cleanup: Remove unused file-list array info members
Revision 381965e by Julian Eisel
October 20, 2021, 10:31 (GMT)
UI: Activate parent when active child is collapsed

Previously, when an item was active and its parent (or grand parent, etc.) was
collapsed, the active item would simply not be visible anymore. It seemed like
there was no active item. So instead, change the just collapsed parent to be
the active item then, so the active item stays visible.
Revision dd728e1 by Julian Eisel
October 20, 2021, 10:31 (GMT)
Asset Browser: UI polish for the asset metadata sidebar

* Show asset path in a (read only) text button. Makes it possible to see the
full path in the tooltip, brings support for copying the path and integrates
better with the sourrounding layout. Previous label needed lots of space to
show the full path without clipping.
* Remove "Details" panel, it only contained one item (description). That is
moved next to the name and asset path button.
* Use property split layout for name source and description buttons. Now that
there are multiple buttons, it's better to have a label for them.
* Always show operators for asset previews, just gray them out if not
applicable instead of hiding. Keeps the layout consistent and graying out is
less confusing than hiding UI elements.
October 20, 2021, 09:58 (GMT)
Split and extend unit tests for vec_roll_to_mat3_normalized.

Separate the huge test into huge logical parts and add more cases
to check. Also add a utility to check that the matrix is orthogonal,
with arbitrary epsilon values and calculations in double.

A couple of tests deliberately fail, to be fixed in following commits.

Ref D9551
October 20, 2021, 09:58 (GMT)
Fix T82455: vec_roll_to_mat3_normalized returns NaN when nor close to -Y.

In this case theta is completely unsafe to use, so a different
threshold based on x and z has to be used to avoid division by zero.

Ref D9551
October 20, 2021, 09:58 (GMT)
Fix precision issues and a bug in vec_roll_to_mat3_normalized.

When the input vector gets close to -Y, y and theta becomes totally
unreliable. It is thus necessary to compute the result in a different
way based on x and z. The code already had a special case, but:

- The threshold for using the special case was way too low.
- The special case was not precise enough to extend the threshold.
- The special case math had a sign error, resulting in a jump.

This adds tests for the computation precision and fixes the issues
by adjusting the threshold, and replacing the special case with one
based on a quadratic Taylor expansion of sqrt instead of linear.

Replacing the special case fixes the bug and results in a compatibility
break, requiring versioning for the roll of affected bones.

Differential Revision: https://developer.blender.org/D9551
October 20, 2021, 09:58 (GMT)
Link/Append tests: properly support and test with/without 'recursive' behaviors.

This requires adding an extra ('indirect') library to the test cases for
append.

Aftermath of T92224.
October 20, 2021, 09:36 (GMT)
Tracking: support editing all selected tracks

This patch adds a "selected_movieclip_tracks" context member and enables
editing properties of multiple selected tracks via the usual Alt-click
editing (as well as the "Copy To Selected" operator). Both use
UI_context_copy_to_selected_list() to gather a list of other selected
items [which are now taken via said new context member]. Strictly
speaking, this could be done without the context member as well [just
gathering other selected tracks in UI_context_copy_to_selected_list()
without relying on a context member], but this might come in handy in
other places (e.g. Addons).

note: some could be desired for markers (e.g. editing pattern/search
areas of all selected track markers, but since this is burried in a
uiTemplate, this is a bit more work for another patch).

Differential Revision: https://developer.blender.org/D12923
October 20, 2021, 07:21 (GMT)
View3D: expose snap selection as a utility funciton

This makes it convenient to position appended objects, see: T92111.
October 20, 2021, 07:01 (GMT)
View3D: snap with active pivot doesn't need to require a 3D view
October 20, 2021, 04:23 (GMT)
Fix : Set Curve Handle Position Node Auto Convert

When trying to auto convert Vector to Free or Auto to Align, the
old handle positions needed to be baked in first.
October 20, 2021, 01:15 (GMT)
CMake: add WITH_BLENDER_THUMBNAILER option

Make building the thumbnail extraction executable optional,
disable on macOS as this was not linking, further, macOS doesn't use
this for thumbnail extraction so it could be left disabled.
October 20, 2021, 00:16 (GMT)
Cleanup: use elem macros
October 19, 2021, 23:31 (GMT)
Thumbnails: refactor extraction to use one code-path for all platforms

Thumbnail extraction now shares code between Linux/Windows,
allowing thumbnails from Zstd compressed blend files to be extracted.

The main logic is placed in blendthumb_extract.cc and is built as static
library. For windows there is DLL which is registered during blender
install and which then reads and generates thumbnails.

For other platforms there is blender-thumbnailer executable file which
takes blend file as an input and generates PNG file. As a result
Python script blender-thumbnailer.py is no longer needed.

The thumbnail extractor shares the same code-path as Blenders file
reading, so there is no need to duplicate any file reading logic.
This means reading compressed blend files is supported (broken since
the recent move Zstd compression - D5799).

This resolves T63736.

Contributors:

- @alausic original patch.
- @LazyDodo windows fixes/support.
- @campbellbarton general fixes/update.
- @lukasstockner97 Zstd support.

Reviewed By: sybren, mont29, LazyDodo, campbellbarton

Ref D6408
October 19, 2021, 23:04 (GMT)
GNUmakefile: clarify that order isn't important for multiple targets

Also include example.
October 19, 2021, 22:19 (GMT)
Cleanup: spelling in comments
October 19, 2021, 22:17 (GMT)
Cleanup: sort cmake file lists
October 19, 2021, 22:17 (GMT)
Cleanup: trailing space, use single quotes for enums
Revision d7b4350 by Hans Goudey
October 19, 2021, 21:27 (GMT)
Fix T92354: Missing raycast node in geometry nodes add menu

Was removed by mistake in rB0a6cf3ed0c64
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021