Blender Git Loki

Blender Git commits from all branches.

Page: 609 / 2888

December 3, 2020, 11:13 (GMT)
fix reading normals
December 3, 2020, 00:58 (GMT)
Merge branch 'temp-review-asset-browser-ui' into asset-browser
December 3, 2020, 00:58 (GMT)
Merge branch 'master' into asset-browser
December 3, 2020, 00:54 (GMT)
Merge branch 'temp-review-asset-filelists' into temp-review-asset-browser-ui
December 3, 2020, 00:53 (GMT)
Merge branch 'temp-review-asset-repositories' into temp-review-asset-filelists
December 3, 2020, 00:52 (GMT)
Merge branch 'temp-review-asset-drag-drop' into temp-review-asset-custom-repositories
December 3, 2020, 00:50 (GMT)
Merge branch 'temp-review-asset-previews' into temp-review-asset-drag-drop
December 3, 2020, 00:50 (GMT)
Merge branch 'temp-review-asset-create-ui' into temp-review-asset-previews
December 3, 2020, 00:47 (GMT)
Merge branch 'temp-review-asset-metadata' into asset-metadata-creation
December 3, 2020, 00:45 (GMT)
Merge branch 'master' into tmp-review-asset-metadata
December 3, 2020, 00:42 (GMT)
Sync with review branches

Some minor changes (mostly cleanups) done while splitting up the branch for review.
December 2, 2020, 22:00 (GMT)
Asset Browser UI

This introduces the UI part of the Asset Browser.

Additions:
* Asset Browser as sub-editor of the File Browser.
* Asset repository dropdown, showing "Current File" and all custom repositories.
* Display popover, filter popover and search box (partially dummies, see T82680).
* Navigation region showing asset categories.
* Asset metadata editing UI in the sidebar (preview, description, tags).
* Make asset files draggable (with preview image).
* If a repository with invalid path is selected, draw a message in the main region to help the user understand what's wrong.
* Operators to add and remove asset tags.
* "Only Assets" option for Link/Append.

Differential Revision: https://developer.blender.org/D9725
December 2, 2020, 21:18 (GMT)
Asset Browser: Internal File Browser changes & Python API additions

The Asset Browser will be a sub-editor of the File Browser. This prepares the File Browser code for that.

**File-Lists**
* Support loading assets with metadata read from external files into the file-list.
* New main based file-list type, for the "Current File" asset repository.
* Refresh file-list when switching between browse modes or asset repositories.
* Support empty file-lists (repository with no assets).
* Store file previews as icons, so scripts can reference them via icon-id. See D9719.

**Space Data**
* Introduce "browse mode" to differeniate between file and asset browsing.
* Add `FileAssetSelectParams` to `SpaceFile`, with `FileSelectParams` as base. Makes sure data is separated between asset and file browsing when switching between them. The active params can be obtained through `ED_fileselect_get_active_params()`.
* `FileAssetSelectParams` stores the currently visible repository ID.
* Introduce file history abstraction so file and asset browsing can keep a separate history (previous and next directories).

**General**
* Option to only show asset data-blocks while file browsing (not exposed here).
* Add "active_file" context member, so scripts can get and display info about the active file.
* Add "active_id" context member, so `ED_OT_lib_id_load_custom_preview` can set a custom ID preview. (Only for "Current File" repository)
* Expose some of `FileDirEntry` in RNA as (non-editable). That way scripts can obtain name, preview icon and asset-data.

Differential Revision: https://developer.blender.org/D9724
December 2, 2020, 19:57 (GMT)
Asset Browser: Support custom asset repository paths through Preferences

Idea is simple: In {nav Preferences > File Paths}, you can create custom repositories, give them a name and select a path.
Currently, this has to be a path to a .blend, only .blend files are supported as repositories right now. But directories should be supported as well, see {T82682}.

Differential Revision: https://developer.blender.org/D9722
December 2, 2020, 19:27 (GMT)
Asset Browser: Support dragging assets and appending on drop

Idea is simple: When dragging an asset, store the source file-path and
data-block name and when dropping, append the data-block. It uses existing drop
operators, but the function to get the dropped ID is replaced with one that
returns the local ID, or, in case of an external asset, appends the ID first.

Note that I expect this to be a short-lived change. A refactor like D4071 is
needed to make the drag & drop system more future proof for assets and other
use cases.

Differential Revision: https://developer.blender.org/D9721
December 2, 2020, 18:41 (GMT)
Nodes: add Collection socket type

The implementation of this socket works almost the same as object sockets.

I did not define a color for this socket yet (it's black for now).
December 2, 2020, 17:48 (GMT)
Merge branch 'greasepencil-object' into greasepencil-io
December 2, 2020, 17:47 (GMT)
Merge branch 'master' into greasepencil-object
December 2, 2020, 17:25 (GMT)
tweak: copy transforms
December 2, 2020, 17:24 (GMT)
Add Custom Space to Constraints

Constraints can currently only use World Space, Local Space, Pose Space, Local with Parent.
This patch adds Custom Space with a custom object to define the evaluation space.

The Custom Space option uses the Local Space of an other object/bone/vertex group.
If selected on owner or target it will show a box for object selection.
If an armature is selected, then it will also show a box for bone selection.
If a mesh object is selected it will show the option for using the local space of a vertex group.

It looks like this in the UI:
{F8731291}

The motivation for this patch is the following situation.
If you have a copy location constraint in your armature you are already limited when you want to use a specific axis. It can be done, but its unneccessarily difficult (as far as I know). But the situation is close to impossible as soon as you have a root bone in your armature (which I was told you always want). I need to only copy the location along a custom axis for a lot of things. The same goes for copy rotation/scale and all the limit constraints because I need to make that axis relative to the root bone transform.

Here is a demo video:
{F8498960}
This is the file of that video:
{F8647541}

This is the file for the tests included in this patch:
{F8699677}

File intended for acceptance test:
{F8879818}

Reviewed By: #animation_rigging, sybren, Severin, angavrilov

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