Commit Graph

432 Commits

Author SHA1 Message Date
407c6b2cdc Fixed .gitignore rule, and added a few more that should be ignored. 2016-08-24 15:20:27 +02:00
200611babf Don't .gitignore editor-specific files.
Those should either be in your global gitignore, or in .git/info/exclude.
2016-08-24 15:20:09 +02:00
4e584fd1a6 Bump version 2016-08-03 15:11:19 +10:00
b8a59e504b Fix packing windows paths that span drives
Reported as T48187
2016-07-26 07:09:39 +10:00
e6f6bd6da3 minor edits to blendfile 2016-06-10 02:19:20 +10:00
5f5baf33b2 Minor changes
- use functions instead of lambda
- dont use color for non-terminal tty's
- add --temp argument for blendfile_pack
2016-01-29 17:47:57 +11:00
4d6b5bf4c0 Use tuples for multi-part lookups
Also use real ints instead of extracting from strings.
2016-01-26 18:36:48 +11:00
d54c92b6fb Cleanup: style 2016-01-26 17:20:10 +11:00
4360fa5475 bledfile.py: Port over changes from src_utils repo.
commit 45e3ba4a4f8fb39d2a090f1f67c10d6132939d8e
    blendfile.py: add BlendFileBlock.get_data_hash() 'pointer-invariant' hash generator.

    This aims at giving some kind of uid to replace addr_old, that does not changes on
    every .blend saving.

commit 81c92e60195f9ff3ce327c26278d07eafb4a0596
    blendfile.py: fix/add some 'basic data' reading (mostly arrays of ints/floats/...), add utils to recursively get all items of a struct.

    New `BlendFileBlock.items_recursive_iter()` will yield all valid key/values pair of a given struct,
    including sub ones (e.g. 'id.next', 'id.name', etc.).
2016-01-18 22:08:20 +01:00
5b0e51783a Improve subdirectory check 2016-01-13 03:05:43 +11:00
5e9eb15409 Add 'bam copy' command. 2016-01-13 02:38:59 +11:00
bd3173b194 Left in prints by accident 2016-01-12 23:55:22 +11:00
Eibriel
f1e5d1d665 Fix 2 for T46811, wrong paths on .bam_paths_uuid 2015-12-17 11:26:20 -03:00
Eibriel
3ab3dbf033 Adding BAM STATUS to test test_absolute_relative_from_blendfiles_texture 2015-12-17 11:26:20 -03:00
28429f297b blendfile: "fix" blocks' iteration over values, and add 'user_data' member to Blocks and DNAStruct objects.
Currently blendfile.py does not know how to handle embeded structs - this is solvable for later, but at least
do not raise exception about that when using values()/items() helpers of BlendFileBlock
(for now, return Ellipsis in those cases).

Also, added some user_data member to BlendFileBlock and DNAStruct classes, handy when you need to store
some own data for each of those, and want to avoid having your own list or dict for that.
2015-12-10 16:16:19 +01:00
Eibriel
693101d78d Adding test for bam_cli.py failing when missing texture on library 2015-11-20 15:47:00 +11:00
4f322cfbcb Fix T46811: Replaying binary edits failed for relative paths 2015-11-20 15:24:22 +11:00
fba8bf04d6 Fix for stupid typo 2015-06-12 23:50:00 +10:00
e41a17735e Change pack --exclude behavior, don't touch excluded paths at all
Was omitting from zip, but still remapping.
2015-06-11 21:11:04 +10:00
e06112b2d2 Use context manager for opening file 2015-06-09 03:13:19 +10:00
7d7fede5b2 Support context manager for opening blend file 2015-06-09 03:08:18 +10:00
88eefcf6bc check source mode before including alembic files 2015-06-08 23:47:18 +10:00
0aa730089b pack, support --exclude argument
See: bam pack --help
2015-06-04 14:55:40 +10:00
b9d27e0bf6 RST docs: Support multi-line argument strings 2015-06-04 14:50:24 +10:00
c3d4d85342 Only pack input cache 2015-06-02 21:46:50 +10:00
89f3ae2649 bam pack: Support for passing the dir only
if you give a dir as output, it will use the input path name. (changing blend to zip if needed)
2015-05-22 22:55:26 +10:00
ab8f30f212 Add bam pack, --mode=FILE option 2015-05-22 22:48:28 +10:00
18901fa5f7 Add alembic support (with option so we can disable) 2015-05-08 01:17:24 +10:00
bbbdf758d4 version bump 2015-03-25 04:14:37 +11:00
9e92aa7736 Fix T44099: Packing textures fails
files that touched the same path multiple times was broken
2015-03-25 04:03:51 +11:00
106be3927f typos 2015-03-16 23:15:23 +11:00
7a02184520 bam command line completion (BASH) T43316
Works with command completion:
  bam pa --> pack

Argument completion:
  bam pack --c --> --compress

List/checkout completion:
  bam ls some/pa --> some/path
2015-03-14 16:17:18 +11:00
6130e98ea8 bam ls, add --full option to return full paths 2015-03-14 16:17:14 +11:00
6b0735e402 blendfile: remove redundant struct use 2015-03-05 09:58:32 +11:00
0567fb62b9 version bump for release 2015-03-03 21:15:05 +11:00
fd51bbc4ba pack: make the output arg optional
This way you can run:

  bam pack foobar.blend

.. which outputs foobar.zip
2015-03-03 10:53:21 +11:00
1111f24b04 Fix T43830: Packing skips some image datablocks
Add support for ParticleSystems (render as - object & group)
2015-03-03 10:39:00 +11:00
f23630e970 path walker: include object materials 2015-03-03 10:01:32 +11:00
a542c8bfc4 Fix for bug where library names could collide
Multiple libraries from one file wouldn't use unique ID.name members.
Now used memory address instead of the name to keep track of which blocks we've visited.
2015-02-20 21:11:00 +11:00
18b1ecff1e Add support for compressed chunks on download
uses lzma compression (4mb chunks currently)
2015-02-20 15:55:02 +11:00
7169a3d713 no longer make copies of files
When the server is performing a checkout, we only need to make binary edit-list
2015-02-20 15:51:46 +11:00
e76691f18b support for partial downloads
(use local cache where possible)
2015-02-20 15:51:10 +11:00
ed1eb6df6f Add support for mesh-cache modifier 2015-02-12 00:38:54 +11:00
535886c915 add revert
uses local cache and replays binary edits
2015-02-07 00:53:20 +11:00
98f67c5d7f test local replay of edits, needed for local cache 2015-01-28 20:29:29 +11:00
27a0f7471b minor var rename (to sync with branch) 2015-01-28 17:55:37 +11:00
e30d18487f tweak, test to ensure UUID's are ok for variations
This is useful for checking checkout's match their UUID's,
useful for testing further changes to BAM.
2015-01-28 00:00:06 +11:00
52a9c508cb Raise an exception when trying to run cli.py directly. 2015-01-15 03:51:29 +11:00
fbd65538ed cleanup: syntax, comments, naming 2015-01-14 23:51:52 +11:00
8d36a542fb Added test for checkout with missing a image 2015-01-14 23:46:12 +11:00