FBX export: do not export textures from non-enabled material texslots.
Based on patch/idea by jrestemeier (Jens Restemeier), many thanks! Differential Revision: https://developer.blender.org/D601
This commit is contained in:
parent
bf38cb7252
commit
35d2c407ee
|
@ -1963,8 +1963,8 @@ def fbx_data_from_scene(scene, settings):
|
|||
data_videos = OrderedDict()
|
||||
# For now, do not use world textures, don't think they can be linked to anything FBX wise...
|
||||
for mat in data_materials.keys():
|
||||
for tex in mat.texture_slots:
|
||||
if tex is None:
|
||||
for tex, use_tex in zip(mat.texture_slots, mat.use_textures):
|
||||
if tex is None or not use_tex:
|
||||
continue
|
||||
# For now, only consider image textures.
|
||||
# Note FBX does has support for procedural, but this is not portable at all (opaque blob),
|
||||
|
|
Loading…
Reference in New Issue