t3du - Particle export: add support for linked particle info

This commit is contained in:
2025-06-27 17:52:19 +00:00
parent 8e83c0d0d0
commit 1d0b338d92

View File

@ -543,11 +543,13 @@ class LeenkxExporter:
if psys.settings.instance_object is None or psys.settings.render_type != 'OBJECT' or not psys.settings.instance_object.lnx_export: if psys.settings.instance_object is None or psys.settings.render_type != 'OBJECT' or not psys.settings.instance_object.lnx_export:
return return
for mod in bpy.data.objects[out_object['name']].modifiers: for obj in bpy.data.objects:
if mod.type == 'PARTICLE_SYSTEM': if obj.name == out_object['name']:
if mod.particle_system.name == psys.name: for mod in obj.modifiers:
if not mod.show_render: if mod.type == 'PARTICLE_SYSTEM':
return if mod.particle_system.name == psys.name:
if not mod.show_render:
return
self.particle_system_array[psys.settings] = {"structName": psys.settings.name} self.particle_system_array[psys.settings] = {"structName": psys.settings.name}
pref = { pref = {