Commit Graph
366 Commits
Author SHA1 Message Date
Sybren A. Stüvel e3d3d988b7 Re-lock package dependencies
Re-ran `poetry lock` to regenerate the `poetry.lock` file.
2024-09-02 18:20:51 +02:00
Sybren A. Stüvel 073bc8140a Update CHANGELOG 2024-09-02 18:20:51 +02:00
jonasdichelle 16a092ddf1 Add Support for Dynamic Paint Modifier
Add support for the Dynamic Paint modifier point cache.

I added a walker to iterate through all surfaces on a canvas to get each surface's point cache.

Reviewed-on: https://projects.blender.org/blender/blender-asset-tracer/pulls/92889
Reviewed-by: Sybren A. Stüvel <sybren@blender.org>
2024-09-02 18:19:07 +02:00
Bastien Montagne fe0b3e8f5e Add a simple, direct way to use BAT, without requiring to setup a venv etc.
Allows to use `python3 path/to/cli.py my args` just from source code,
without requiring to set up a whole venv for that. Much simpler when
only 'regular' debuging in code logic itself is needed.
2024-08-13 18:01:38 +02:00
Sybren A. Stüvel 42dd5ec1b6 Bumped version to 1.18 v1.18 2024-01-11 16:43:11 +01:00
Sybren A. Stüvel 77778f1895 Mark v1.18 as released today 2024-01-11 16:39:27 +01:00
Olivier Charvin 44d1d2ff90 Fix IES lights asset tracing
Fix an issue where BAT failed with a `KeyError` (because it couldn't
find the `filepath` property) when handling IES light files.

Also add example files & unit tests.

Reviewed-on: https://projects.blender.org/blender/blender-asset-tracer/pulls/92886
2024-01-11 16:34:28 +01:00
Sybren A. Stüvel 15f00e6c92 Add support for reading uchar aka uint8_t 2024-01-08 17:08:13 +01:00
Olivier Charvin ced4af98a3 Add support for OpenVDB
Add support for tracing `VO` data-blocks, for OpenVDB volumes.
2024-01-02 16:32:04 +01:00
Sybren A. Stüvel 937ecfdece Update CHANGELOG 2023-12-18 17:59:37 +01:00
Sybren A. Stüvel 98892151ed Bumped version to 1.18-dev0 2023-12-18 17:58:30 +01:00
Olivier Charvin 2099827554 blocks2assets: debug filepath on reading unsupported blocks (#92885)
When logging that there is no reader implemented for a certain
data-block type, include the filepath of the blend file that contains
that data-block.

Reviewed-on: https://projects.blender.org/blender/blender-asset-tracer/pulls/92885
2023-12-18 17:57:42 +01:00
Sybren A. Stüvel 47e7c00845 Bumped version to 1.17 v1.17 2023-12-14 11:54:30 +01:00
Sybren A. Stüvel 1abb8e5650 Mark 1.17 as released today 2023-12-14 11:54:21 +01:00
Sybren A. Stüvel 61dc5b8a23 Fix issue packing lamps with non-IES 'storage'
Lamp/light nodes might have a `storage` property that might point to an
IES texture node (which has the expected `filepath`), but not always.
The latter now no longer crashes BAT.

This fixes https://projects.blender.org/blender/blender-asset-tracer/pulls/92883
2023-12-14 11:36:55 +01:00
Sybren A. Stüvel 81ea8296da Bump version to 1.17-dev0 2023-12-14 11:36:34 +01:00
Sybren A. Stüvel 2a9bdc5206 Mark 1.16 as released today v1.16 2023-11-02 15:47:35 +01:00
Sybren A. Stüvel c4ff3fdb54 Bumped version to 1.16 2023-11-02 15:46:01 +01:00
Sybren A. Stüvel 29c0ba14b1 CHANGELOG: add Python version changes
Document drop of support for 3.7.

Also I forgot to mention that v1.15 added support for Python 3.11.
2023-11-02 15:07:17 +01:00
Sybren A. Stüvel e2b2e6fb68 Drop support for Python 3.7
Python 3.7 is EOL, no longer supported.
2023-11-02 15:05:31 +01:00
Sybren A. Stüvel 36c258985e Cleanup: formatting change of pyproject.toml
No functional changes.
2023-11-02 15:05:16 +01:00
Sybren A. Stüvel ef5b83feda CHANGELOG: update for new tracing behaviour of directory assets 2023-11-02 15:01:05 +01:00
Sybren A. Stüvel 606377180c Pack: always pack files, explode directories to a list of files
When an asset is represented as directory in Blender (for example fluid
simulation caches), that directory is traced and each file is considered
an asset.

This makes it considerably easier for Shaman clients, as they need to
compute the SHA256 checksum of each file. The logic to transform a
directory path to a list of the contained files is now in BAT itself.
2023-11-02 14:53:52 +01:00
Sybren A. Stüvel f9bc6f2d08 Cleanup: fix mypy errors
This mostly handles a mypy change where implicit optionals (i.e. things
like `size: int = None`) are no longer allowed.

No functional changes.
2023-11-02 14:46:38 +01:00
Sybren A. Stüvel b3fb7845c3 Cleanup: Reformat with black
No functional changes.
2023-11-02 14:40:27 +01:00
Olivier Charvin 74b3df5f99 Add support for IES lights
Add support for tracing `.ies` files referenced by lights.

Reviewed-on: https://projects.blender.org/blender/blender-asset-tracer/pulls/92883
2023-10-16 12:14:07 +02:00
Sybren A. Stüvel 055457ab67 Add BlendFileBlock.raw_data() and .as_string() functions
Add functions to interpret the data in a `BlendFileBlock` as either `bytes`
or `string`. This is used to obtain the contents of a `char*` (instead
of an embedded `char[N]` array).
2023-05-16 16:01:38 +02:00
Sybren A. Stüvel d2b353d1bf README: fix copy-paste error v1.15 2022-12-16 15:26:26 +01:00
Sybren A. Stüvel 9641ea1b58 Adjust filenames for newer Poetry
Newer Poetry versions seem to write sources to
`blender_asset_tracer-1.15.tar.gz`, i.e. with underscores in the name,
just like the wheel file.
2022-12-16 15:25:19 +01:00
Sybren A. Stüvel 64d657ead2 Poetry: include a readme setting
This should include the contents of `README.md` in the package & show it
on the Python package index.
2022-12-16 15:22:27 +01:00
Sybren A. Stüvel 54456e0c35 Also test on Python 3.11 2022-12-16 15:14:09 +01:00
Sybren A. Stüvel e6669887ce Update all dependencies to their latest versions 2022-12-16 15:08:59 +01:00
Sybren A. Stüvel aba2b673f1 Change my email address
Change the email address to my work address.
2022-12-16 15:01:38 +01:00
Sybren A. Stüvel ce19808f5c Bumped version to 1.15 2022-12-16 15:00:43 +01:00
Sybren A. Stüvel 8f933ef862 Mark 1.15 as released today 2022-12-16 15:00:31 +01:00
Sybren A. Stüvel 517e8eee23 Bumped version to 1.15-dev0 2022-12-16 14:49:56 +01:00
Sybren A. Stüvel 1e8c924990 Add support for fluid simulation caches
Add `eModifierType_Fluid` support, with non-pointcache caches. The entire
cache directory is considered a dependency to list/pack.
2022-12-16 14:49:36 +01:00
Sybren A. Stüvel 1541c52520 Version bump to 1.14
This was actually released in 2022-09-12, but I forgot to commit!
v1.14
2022-12-02 13:11:37 +01:00
Sybren A. Stüvel 79193a60cd CHANGELOG: mark 1.14 as released today 2022-09-12 15:28:04 +02:00
Sybren A. Stüvel 330b179a44 README: add new instructions on building & publishing
PyPi requires an API token nowadays, for uploading packages. The README
now includes instructions on how to set those up & use them.
2022-09-12 15:28:04 +02:00
Sybren A. Stüvel 3bcb9bab0e Publish packages with Twine
Twine is the preferred way to publish Python packages nowadays.
2022-09-12 15:27:51 +02:00
Sybren A. Stüvel 051cab877c Poetry: update dependencies 2022-09-12 15:06:08 +02:00
Sybren A. Stüvel cc4043969e Change when the trace_blendfile() callback is called
Previously the `callback.trace_blendfile()` callback was called just before
tracing its dependencies would start, i.e. after opening it. This is now
changed to before opening it, because that can take a long time (to load
SDNA). this will make any UI (like the Flamenco add-on) report the right
filename when waiting for big files, instead of lingering on the
last-opened (potentially very small) blend file.
2022-09-12 15:06:08 +02:00
Sybren A. Stüvel bef5fb88cd Bumped version to 1.13 v1.13 2022-07-14 10:40:39 +02:00
Sybren A. Stüvel 32e993fbb5 Update CHANGELOG.md 2022-07-14 10:40:36 +02:00
Sybren A. Stüvel 0e5d926e7a Better error message for an assertion
In some unexpected situations BAT would just show that the
`bfile_pp is not None` assertion failed. Now it also shows which file is
the one causing this issue, aiding in debugging the situation.
2022-07-14 10:06:20 +02:00
Sybren A. Stüvel 2aaf0896ba Support Python 3.10 v1.12 2022-03-25 12:13:19 +01:00
Sybren A. Stüvel 63c4745e9f Cleanup: reformat with Black 2022-03-25 12:07:06 +01:00
Sybren A. Stüvel 3daeb9f80a Bump versions of dependencies
Most importantly, update MyPy so it supports Python 3.10 (which is used
in Blender 3.1, the latest release at this moment).
2022-03-25 12:07:06 +01:00
Sybren A. Stüvel cd6732a407 Bump required Python to 3.7 for MyPy 2022-03-25 12:07:06 +01:00