Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 0760b6f13d - Show all commits

View File

@ -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