[Bf-extensions-cvs] [4e3d70c] temp-sybren-blendfile: Fixed: dna_type can't be indexed

Sybren A. Stüvel noreply at git.blender.org
Wed Jun 22 15:20:08 CEST 2016


Commit: 4e3d70c5dbab7b1c0b67250d2d1bd5d047e13188
Author: Sybren A. Stüvel
Date:   Wed Jun 22 14:15:22 2016 +0200
Branches: temp-sybren-blendfile
https://developer.blender.org/rBA4e3d70c5dbab7b1c0b67250d2d1bd5d047e13188

Fixed: dna_type can't be indexed

===================================================================

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