Commit Graph

400 Commits

Author SHA1 Message Date
1e66a2c2f2 Add index support to path resolving 2014-10-17 12:04:09 +02:00
bde34ddb35 simplify DNAField.calc_name_only 2014-10-17 10:06:29 +02:00
d95a9f1d70 pep8 cleanup 2014-10-17 09:33:16 +02:00
3ac7b75f52 Material arrays now read 2014-10-16 21:29:09 +02:00
7dafeba99f generalize handling of ID's so indirect references can be followed 2014-10-16 20:26:02 +02:00
149c8212ee print fields in block __str__ (overkill but handy) 2014-10-16 20:25:48 +02:00
6c98bfb4e6 WIP: update the packer
- initial work for expanding link data
- follow group object links
2014-10-16 20:01:22 +02:00
0a561193ab Speedup BlendFile.find_block_from_offset (use hash) 2014-10-16 20:00:46 +02:00
010798af5d add arguments to refine the pointer type 2014-10-16 19:51:24 +02:00
1814c0b46c Add BlendFileBlock.refine_type_from_index
avoid lookup
2014-10-16 19:31:16 +02:00
a19abf9ca7 use dict lookup for sdna index 2014-10-16 19:25:39 +02:00
6dce38f2ae remove DNACatalog class, this only stored a list 2014-10-16 19:02:57 +02:00
d4a164b09a merge DMAStruct and type list
Was very confusing to have data spread out
now DNAStruct contains all info for a given type.
2014-10-16 18:47:10 +02:00
d1c4c5379b Add method to refine types (needed for non ID blocks) 2014-10-16 18:21:46 +02:00
b5c4567057 Initial commit for documentation 2014-10-16 16:43:26 +02:00
4987505ed5 Add BlendFileBlock.get_pointer helper function 2014-10-16 16:29:23 +02:00
f3fa2d9407 Fix error in last commit (file offsets were wrong) 2014-10-16 16:29:03 +02:00
ef5f4bb1eb Cleanup: simplify block path resolving
move into own function, use from field get/set
2014-10-16 16:28:01 +02:00
754c571210 use more logical layout for dna-fields
replace tuple with field struct
2014-10-16 16:28:01 +02:00
bedc16fb15 move field lookups into their own function 2014-10-16 16:28:00 +02:00
b82aa439fa raise an exception when get/setting a value that doesn't exist 2014-10-16 16:28:00 +02:00
605d274406 Initial web service commit 2014-10-16 16:10:25 +02:00
96ee7bf19b move packing util into its own directory 2014-10-16 12:15:20 +02:00
57964a352c Track library references, so as not to revisit them 2014-10-15 19:44:10 +02:00
d2bc40f1ba Fix for the same blend file being used multiple times 2014-10-15 18:37:47 +02:00
57e2a73190 basic working packing - for libraries 2014-10-15 16:35:18 +02:00
6abef7bddc remove history for header 2014-10-15 13:56:26 +02:00
0e1dd8398e remove prints 2014-10-15 10:20:42 +02:00
cff1d0d204 Simplify struct use 2014-10-15 10:12:43 +02:00
e23ed6a669 use bytes for struct args 2014-10-15 09:49:46 +02:00
fb94545492 pep8 & minor changes 2014-10-15 09:43:00 +02:00
582df9f68b add GPL header 2014-10-14 19:14:37 +02:00
20db823930 dummy readme 2014-10-14 19:11:18 +02:00
4335720917 inirial packer script 2014-10-14 19:09:17 +02:00
51cbfdef81 remove utility path function 2014-10-14 18:18:24 +02:00
0aa22d054d remove redundant check 2014-10-14 18:16:30 +02:00
6e3b9b1c4a fix for error 2014-10-14 17:10:11 +02:00
f301a4779f shorten dna structure name 2014-10-14 17:09:16 +02:00
7205ac9e35 name blendfile use more clearly 2014-10-14 16:11:20 +02:00
d3a7f0c19e improve string handling and add pythonic accessors 2014-10-14 16:07:10 +02:00
ae76369200 use bytes for reading header 2014-10-14 13:03:46 +02:00
2480ded40d use bytes for code & fields 2014-10-14 12:44:54 +02:00
e48d3ea656 faster function to read bytes
also add read_bytes0
2014-10-14 12:33:41 +02:00
4220a679f3 move read/write into IO class 2014-10-14 12:02:57 +02:00
092430476d cleanup string handling 2014-10-14 11:42:54 +02:00
28c28578cf Add support for writing bytes 2014-10-14 11:21:30 +02:00
f1f6033618 refactor for newstyle py api, add __slots__ 2014-10-14 11:14:20 +02:00
c48bcff794 pep8 2014-10-14 09:34:09 +02:00
10623e6a6a cleanup: ws 2014-10-14 09:03:23 +02:00
e7c52a29b9 initial blendfile 2014-10-14 09:02:39 +02:00