}
}
soft_body->generateClusters(0);
- soft_body->generateBendingConstraints(2, soft_body->m_materials[
- body->material_index]);
+ if (!body->bending_constraints)
+ {
+ soft_body->generateBendingConstraints(2, soft_body->
+ m_materials[body->material_index]);
+ body->bending_constraints = EINA_TRUE;
+ }
}
static void
}
soft_body->generateClusters(0);
- soft_body->generateBendingConstraints(10, soft_body->m_materials[
- body->material_index]);
+ if (!body->bending_constraints)
+ {
+ soft_body->generateBendingConstraints(10, soft_body->
+ m_materials[body->material_index]);
+ body->bending_constraints = EINA_TRUE;
+ }
}
inline static double