Skip to content

Commit 0f97329

Browse files
committed
compat for nbbeams
1 parent 8f7361b commit 0f97329

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/BeamAdapter/component/model/BaseRodSectionMaterial.inl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ void BaseRodSectionMaterial<DataTypes>::init()
4747
{
4848
this->d_componentState.setValue(sofa::core::objectmodel::ComponentState::Loading);
4949

50+
if(!d_nbBeams.isSet())
51+
{
52+
msg_deprecated() << "nbBeams is now required but it was not set. Its value will be copied from nbEdgesCollis as a temporary compatibility solution.";
53+
d_nbBeams.setValue(d_nbEdgesCollis.getValue());
54+
}
55+
5056
// Prepare beam sections
5157
double r = this->d_radius.getValue();
5258
double rInner = this->d_innerRadius.getValue();

0 commit comments

Comments
 (0)