diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-06 03:05:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-06 03:05:49 +0400 |
commit | ed74bfe14d302ab15c843ef0397fce9aa4008717 (patch) | |
tree | 7480429cbbd6477d147ea146f7d7936db02f7550 | |
parent | 08fab40c57383b08241ad3e2489430dbd0461a1d (diff) |
fix for error added when refactoring
-rw-r--r-- | io_scene_map/export_map.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_map/export_map.py b/io_scene_map/export_map.py index c13efaf3..a10926b4 100644 --- a/io_scene_map/export_map.py +++ b/io_scene_map/export_map.py @@ -47,7 +47,7 @@ def face_uv_get(face): def face_material_get(face): me = face.id_data try: - return me.materials[f.material_index] + return me.materials[face.material_index] except: return None @@ -114,7 +114,7 @@ def write_face2brush(file, face): image_text = PREF_NULL_TEX - material = face_material_get(f) + material = face_material_get(face) if material and material.game_settings.invisible: image_text = PREF_INVIS_TEX |