Fem: Remove property name comparison
This commit is contained in:
@@ -126,7 +126,7 @@ void ViewProviderFemConstraintForce::updateData(const App::Property* prop)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (strcmp(prop->getName(),"Points") == 0) {
|
||||
if (prop == &pcConstraint->Points) {
|
||||
const std::vector<Base::Vector3d>& points = pcConstraint->Points.getValues();
|
||||
|
||||
#ifdef USE_MULTIPLE_COPY
|
||||
@@ -171,7 +171,8 @@ void ViewProviderFemConstraintForce::updateData(const App::Property* prop)
|
||||
cp->matrix.finishEditing();
|
||||
#endif
|
||||
}
|
||||
else if (strcmp(prop->getName(),"DirectionVector") == 0) { // Note: "Reversed" also triggers "DirectionVector"
|
||||
else if (prop == &pcConstraint->DirectionVector) {
|
||||
// Note: "Reversed" also triggers "DirectionVector"
|
||||
// Re-orient all arrows
|
||||
Base::Vector3d normal = pcConstraint->NormalDirection.getValue();
|
||||
Base::Vector3d forceDirection = pcConstraint->DirectionVector.getValue();
|
||||
|
||||
Reference in New Issue
Block a user