Sybren A. Stüvel
5f966934df
Blender 2.8 fixes because of removed Material.mtex and Material.group
2018-06-07 15:18:18 +02:00
Sybren A. Stüvel
8b73b86734
Reduce cyclomatic complexity of Struct.field_get()
2018-03-22 10:56:02 +01:00
Sybren A. Stüvel
53e22a4a2f
Added GPL comment blocks with proper attibution.
2018-03-16 13:25:20 +01:00
Sybren A. Stüvel
fdbbc3a20d
Static type checking with mypy
...
This does introduce some not-so-nice things, like having to annotate each
`__init__` function with `-> None`. However, the benefits of having static
type checking in a complex bit of software like BAT outweigh the downsides.
2018-03-09 11:09:47 +01:00
Sybren A. Stüvel
71dd5bc11b
Path rewriting when packing.
...
Doesn't work with sequences, nor with split dirname/basename fields.
2018-03-06 16:06:36 +01:00
Sybren A. Stüvel
59c0b6df4c
Allow block.get() to return the dna.Field
...
This is needed by the upcoming dependency tracer.
2018-02-26 18:15:14 +01:00
Sybren A. Stüvel
b42a090f32
Support for modifying string/bytes fields.
2018-02-23 14:26:57 +01:00
Sybren A. Stüvel
8d32ab513f
Recursively add offsets of Struct.field_from_path()
2018-02-23 12:24:50 +01:00
Sybren A. Stüvel
968068d21d
Better exception message
2018-02-22 17:44:50 +01:00
Sybren A. Stüvel
63c7e4fcef
Ported iteration over properties
2018-02-22 17:44:50 +01:00
Sybren A. Stüvel
7165d121bd
Ported BlendFileBlock.get_recursive_iter()
...
Also simplified get_file_offset(), because its optional parameters are
never used anyway.
2018-02-22 16:45:16 +01:00
Sybren A. Stüvel
87300df6a3
Fixed issue reading array items and renamed some stuff
2018-02-22 16:14:10 +01:00
Sybren A. Stüvel
9c7791f762
Implemented/fixed/ported loading of blend files and getting blocks & props
2018-02-22 15:52:10 +01:00
Sybren A. Stüvel
e66b1edaf4
Implemented + tested dna.Struct.field_get
2018-02-22 14:50:24 +01:00
Sybren A. Stüvel
dcda85c3e6
Ported dna.Name, dna.Field, and started with dna.Struct
2018-02-22 14:50:24 +01:00
Sybren A. Stüvel
0532634d13
Initial check-in, not yet working and has old, unported BAM code
2018-02-22 14:50:10 +01:00