From 06ac67772f25731a08cc35ae5f3d5e5817f63479 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 5 Dec 2014 15:48:07 +0100 Subject: [PATCH] Fix blendfile exception when refining types --- modules/blendfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/blendfile.py b/modules/blendfile.py index b537640..7949b24 100644 --- a/modules/blendfile.py +++ b/modules/blendfile.py @@ -184,8 +184,8 @@ class BlendFile: self.structs[sdna_index_next].size): raise RuntimeError("cant refine to smaller type (%s -> %s)" % - (self.file.structs[sdna_index_curr].dna_type_id.decode('ascii'), - self.file.structs[sdna_index_next].dna_type_id.decode('ascii'))) + (self.structs[sdna_index_curr].dna_type_id.decode('ascii'), + self.structs[sdna_index_next].dna_type_id.decode('ascii'))) @staticmethod def decode_structs(header, block, handle):