diff --git a/data/blender/mitsuba/export/adjustments.py b/data/blender/mitsuba/export/adjustments.py index fba4346b..d914cd60 100644 --- a/data/blender/mitsuba/export/adjustments.py +++ b/data/blender/mitsuba/export/adjustments.py @@ -35,7 +35,7 @@ class MtsAdjustments: self.target_dir = target_dir self.exported_materials = [] self.exported_textures = [] - self.materials = materials if materials != None else bpy.data.textures + self.materials = materials if materials != None else bpy.data.materials self.textures = textures if textures != None else bpy.data.textures def exportWorldtrafo(self, trafo): @@ -142,7 +142,8 @@ class MtsAdjustments: if name in self.materials: return self.materials[name] else: - raise Exception('Failed to find material "%s"' % name) + raise Exception('Failed to find material "%s" in "%s"' % (name, + str(self.materials))) def exportTexture(self, mat): if mat.name in self.exported_textures: diff --git a/doc/blender.tex b/doc/blender.tex index 0345edf3..83292dd6 100644 --- a/doc/blender.tex +++ b/doc/blender.tex @@ -6,3 +6,8 @@ Blender application bundle (e.g. \code{blender.app/Contents/MacOS/}\textbf{