Age | Commit message (Collapse) | Author |
|
This follows naming convention agreed on in T56648.
|
|
|
|
Differential Revision: https://developer.blender.org/D3746
|
|
|
|
|
|
|
|
|
|
|
|
This should fix T51692: Blend File Utils - AssertionError
|
|
|
|
This makes it easier to see what changed when we update to a
newer version of BAM.
|
|
This avoids having binary data in the addons repository. I've
also added a script that automates this task. It:
- wipes any pre-existing unpacked BAM wheel,
- unpacks the new BAM wheel,
- copies some files from the extracted wheel into the addon
directly,
- updates the version number of the add-on so that it matches
the version of BAM, and
- updates the path where the add-on searches for the unpacked
wheel.
|
|
|
|
|
|
|
|
The glob + sort approach didn't work reliably enough. Now we're just
hard-coding the wheel's filename.
|
|
Not only updated the wheel, but also updated the py files that originate
from the BAM Git repository.
|
|
|
|
This fixes T51131 Textures do not get packed when used in particle system
For more info, see https://developer.blender.org/diffusion/BAM/history/master/
|
|
self.temp_dir.cleanup() can raise a FileNotFoundError when BAM-pack
actually (correctly) cleaned up after itself.
|
|
Previously we had a copy of BAM's blendfile_pack.py shipped with Blender.
Updating that was cumbersome, as changes in one copy would have to be
manually ported to the other. This is now resolved by not bundling
blendfile_pack.py at all, but to include BAM as wheel file. This wheel
file can be produced by running "python3 setup.py bdist_wheel" in the BAM
source directory, and can be bundled with Blender without further
modification.
Blender looks for a file "blender_bam-*.whl" in the io_blend_utils
directory, and loads the (alphabetically) last version. Even though there
should be only one wheel file bundled, things won't break when there happen
to be more, and Blender should pick up on the latest version (given simple
versioning schemes).
|
|
A single char is nearly never a string or byte, but rather a small int
or bitflag value. ;)
|
|
.blend files cases.
|
|
This way the import statements remain the same in both Blender's
io_blend_utils module and BAM.
|
|
Just to make it easier to get to the name of the DNA type from other
Python scripts.
|
|
Using paths on different drives caused packing to fail
since its not possible to make one path relative to another.
|
|
|
|
|
|
Logging configuration should be done by the user, as described in
https://code.blender.org/2016/05/logging-from-python-code-in-blender/
|
|
|
|
|
|
|
|
Currently only expose packing functionality for packing
a file and all its deps into a ZIP (shared code with the cloud).
Can run directly or from the command line (without blender) via `blendfile_pack`.
Also adds subprocess_helper module which we may want to re-use elsewhere,
allowing to run external processes that don't lock blender and can be cancelled by pressing Esc.
|