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):
|
for spl_to, spl_from in zip(obj_target.data.splines, obj_source.data.splines):
|
||||||
spl_to.material_index = spl_from.material_index
|
spl_to.material_index = spl_from.material_index
|
||||||
|
|
||||||
# TODO MAKE USE_ABLE AGAIN
|
# Rest of the loop applies only to meshes.
|
||||||
# # Rest of the loop applies only to meshes.
|
if obj_target.type == "MESH":
|
||||||
# if obj_target.type != "MESH":
|
# Transfer material slot assignments for mesh
|
||||||
# continue
|
for pol_to, pol_from in zip(obj_target.data.polygons, obj_source.data.polygons):
|
||||||
|
pol_to.material_index = pol_from.material_index
|
||||||
# # Transfer material slot assignments for mesh
|
pol_to.use_smooth = pol_from.use_smooth
|
||||||
# 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