Asset Pipeline v2 #145
@ -121,12 +121,9 @@ def transfer_material_slot(item, obj_target):
|
||||
for spl_to, spl_from in zip(obj_target.data.splines, obj_source.data.splines):
|
||||
spl_to.material_index = spl_from.material_index
|
||||
|
||||
# TODO MAKE USE_ABLE AGAIN
|
||||
# # Rest of the loop applies only to meshes.
|
||||
# if obj_target.type != "MESH":
|
||||
# continue
|
||||
|
||||
# # Transfer material slot assignments for mesh
|
||||
# for pol_to, pol_from in zip(obj_target.data.polygons, obj_source.data.polygons):
|
||||
# pol_to.material_index = pol_from.material_index
|
||||
# pol_to.use_smooth = pol_from.use_smooth
|
||||
# Rest of the loop applies only to meshes.
|
||||
if obj_target.type == "MESH":
|
||||
# Transfer material slot assignments for mesh
|
||||
for pol_to, pol_from in zip(obj_target.data.polygons, obj_source.data.polygons):
|
||||
pol_to.material_index = pol_from.material_index
|
||||
pol_to.use_smooth = pol_from.use_smooth
|
||||
|
Loading…
Reference in New Issue
Block a user