Bastien Montagne
d4e38d99b2
libquery: add optional handling of 'UI' ID pointers.
...
Handling those through different ways /might/ be needed sometimes, but
in most case this is just a nest of issues, since you can easily forget
to take them into account.
Note that this should be a 'non-functional' change, as this new behavior
is not used anywhere yet.
2020-02-18 11:22:32 +01:00
Campbell Barton
f829fefe8a
Cleanup: spelling
2020-02-15 15:58:06 +11:00
Bastien Montagne
1c1b78eab5
Make libquery resilient to old blend-files missing pointers.
...
This makes libquery usable during blendfile reading phases.
Some pointers that shall never be NULL in modern Main database did not
exist before.
2020-02-14 12:52:47 +01:00
Bastien Montagne
38c8378f52
Cleanup: libquery: add explicit comment that we ignore ID.lib pointer there.
2020-02-14 12:18:21 +01:00
Bastien Montagne
92e41bb1a8
Fix for fix (c) assert from own recent commit.
...
This master_collection thing is really, really annoyingly spreading all
over the place...
2020-02-13 16:56:31 +01:00
Bastien Montagne
c9c013f53b
libquery: Add 'owner id' to callback data.
...
In some cases it's important to always have a proper ID as reference,
e.g. whene generating data supposed to represent main data-base...
2020-02-13 16:23:42 +01:00
Bastien Montagne
f28bb6992f
Refactor libquery ID looper callback to take a single parameter.
...
Using a struct here allows to change given parameters to the callbacks
without having to edit all callbacks functions, which is always noisy
and time consuming.
2020-02-13 16:23:42 +01:00
Campbell Barton
9f07c03d20
Cleanup: unused headers
2020-02-11 11:54:50 +11:00
Bastien Montagne
56116bbdf4
Cleanup/refactor: Rename BKE_library files to BKE_lib.
...
Note that `BKE_library.h`/`library.c` were renamed to
`BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here.
Part of T72604.
2020-02-10 13:00:42 +01:00