Skip to content
Snippets Groups Projects
Commit ed74bfe1 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for error added when refactoring

parent 08fab40c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment