forked from bartvdbraak/blender
fix for OBJ exporting Texface images
This commit is contained in:
parent
da3802f559
commit
aec7174a42
@ -513,7 +513,7 @@ def write(filename, objects, scene,
|
||||
# XXX update
|
||||
tface = me.active_uv_texture.data
|
||||
|
||||
face_index_pairs.sort(key=lambda a: (a[0].material_index, tface[a[1]].image, a[0].smooth))
|
||||
face_index_pairs.sort(key=lambda a: (a[0].material_index, hash(tface[a[1]].image), a[0].smooth))
|
||||
elif len(materials) > 1:
|
||||
face_index_pairs.sort(key = lambda a: (a[0].material_index, a[0].smooth))
|
||||
else:
|
||||
|
@ -254,7 +254,7 @@ static int idp_sequence_type(PyObject *seq)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (PyMapping_Check(item)) { /*do nothing */
|
||||
else if (PyMapping_Check(item)) {
|
||||
if(i != 0 && (type != IDP_IDPARRAY)) { /* mixed dict/int */
|
||||
Py_DECREF(item);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user