[Bf-extensions-cvs] [a668b0b] master: blendfile: fixed dna_type can't be indexed error
Sybren A. Stüvel
noreply at git.blender.org
Thu Jun 23 01:06:52 CEST 2016
Commit: a668b0b741c8053934b159ba1d7419ac4f4fd0f7
Author: Sybren A. Stüvel
Date: Wed Jun 22 14:15:22 2016 +0200
Branches: master
https://developer.blender.org/rBAa668b0b741c8053934b159ba1d7419ac4f4fd0f7
blendfile: fixed dna_type can't be indexed error
===================================================================
M io_blend_utils/blend/blendfile.py
===================================================================
diff --git a/io_blend_utils/blend/blendfile.py b/io_blend_utils/blend/blendfile.py
index e14d383..154943b 100644
--- a/io_blend_utils/blend/blendfile.py
+++ b/io_blend_utils/blend/blendfile.py
@@ -795,8 +795,8 @@ class DNAStruct:
else:
return DNA_IO.write_bytes(handle, value, dna_name.array_size)
else:
- raise NotImplementedError("Setting %r is not yet supported" %
- dna_type[0], dna_name, dna_type)
+ raise NotImplementedError("Setting %r is not yet supported for %r" %
+ (dna_type, dna_name), dna_name, dna_type)
class DNA_IO:
More information about the Bf-extensions-cvs
mailing list