Asset System: New "weak" asset reference for storing in .blend files #106026

Closed
Bastien Montagne wants to merge 13 commits from mont29:F-pr-105603 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

13 Commits

Author SHA1 Message Date
c7941e4568 Fix asset representation tests.
Some checks failed
buildbot/vexp-code-patch-coordinator Build done.
2023-03-23 11:17:33 +01:00
bf011b6742 Basic unit tests for the new path resolving and exploding function 2023-03-23 10:45:12 +01:00
8e1c506b8e Some refactoring for function to resolve to an exploded path
- Use (arguably) more readable return type instead of return arguments.
- Update function API comment.
- Use more clear (because more direct) return values
2023-03-23 10:45:12 +01:00
a0aaed9c7e Add function to create an exploded path from a weak asset reference 2023-03-23 10:45:12 +01:00
e1519a3f41 Add functions to resolve a full path to an asset from the weak reference
Includes unit tests.
2023-03-23 10:45:12 +01:00
78497af96a Attempt to fix linker error on GCC 2023-03-23 10:45:12 +01:00
9ba1a87628 Cleanup: struct member order 2023-03-23 10:45:12 +01:00
84810d9be1 Add test case for custom asset libraries 2023-03-23 10:45:12 +01:00
80a491c5e9 Remove redundant librarary name parameter in more cases 2023-03-23 10:45:12 +01:00
96a8d75f61 Fix potentially uninitialized values in weak reference 2023-03-23 10:45:12 +01:00
bfb62e8f5c Refactor: Don't pass library name for builtin asset libraries 2023-03-23 10:45:12 +01:00
8ca8222746 Fix error in asset weak reference move constructor
I thought the tests passed, what did I doo??..
2023-03-23 10:45:12 +01:00
e9e609c8a4 Initial weak asset reference, to store asset references in .blends 2023-03-23 10:45:08 +01:00