Changeset 23592


Ignore:
Timestamp:
01/02/19 21:36:47 (6 years ago)
Author:
Mathieu Morlighem
Message:

BUG: forgot to add check on constraint type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/UpdateDynamicConstraintsx/UpdateDynamicConstraintsx.cpp

    r23588 r23592  
    2121        for(int i=0;i<constraints->Size();i++){
    2222                Constraint* constraint=(Constraint*)constraints->GetObjectByOffset(i);
    23                 ((SpcDynamic*)constraint)->SetDynamicConstraint(nodes,yg_serial);
     23                if(constraint->ObjectEnum()==SpcDynamicEnum){
     24                        ((SpcDynamic*)constraint)->SetDynamicConstraint(nodes,yg_serial);
     25                }
    2426
    2527        }
Note: See TracChangeset for help on using the changeset viewer.