Skip to content

Commit bf96cd5

Browse files
authored
Merge pull request #1755 from tong/fix-softbody-export
Fix softbody export
2 parents 1aded8a + 8d07d62 commit bf96cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blender/arm/exporter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2653,11 +2653,11 @@ def add_softbody_mod(o, bobject: bpy.types.Object, modifier: Union[bpy.types.Clo
26532653
# Wrong modifier type
26542654
return
26552655

2656-
out_trait['parameters'] = [str(soft_type), str(bend), str(soft_mod.settings.mass), str(bobject.arm_soft_body_margin)]
2656+
out_trait['parameters'] = [str(soft_type), str(bend), str(modifier.settings.mass), str(bobject.arm_soft_body_margin)]
26572657
o['traits'].append(out_trait)
26582658

26592659
if soft_type == 0:
2660-
ArmoryExporter.add_hook_mod(o, bobject, '', soft_mod.settings.vertex_group_mass)
2660+
ArmoryExporter.add_hook_mod(o, bobject, '', modifier.settings.vertex_group_mass)
26612661

26622662
@staticmethod
26632663
def add_hook_mod(o, bobject: bpy.types.Object, target_name, group_name):

0 commit comments

Comments
 (0)