forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user