Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -328,6 +328,12 @@ def make_instancing_and_skinning(mat: Material, mat_users: Dict[Material, List[O
if 'Scale' in inst:
global_elems.append({'name': 'iscl', 'data': 'float3'})
for attr in bo.lnx_instanced_attrs:
global_elems.append({'name': attr.name, 'data': f"float{attr.size}"})
if lnx.utils.export_morph_targets(bo):
global_elems.append({'name': 'imorph', 'data': 'float4'})
elif inst == 'Off':
# Ignore children of instanced objects, they are instanced even when set to 'Off'
instancing_usage[1] = bo.parent is None or bo.parent.lnx_instanced == 'Off'