Fem: Remove property name comparison
This commit is contained in:
@@ -110,7 +110,7 @@ void ViewProviderFemConstraintSpring::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();
|
||||
const std::vector<Base::Vector3d>& normals = pcConstraint->Normals.getValues();
|
||||
if (points.size() != normals.size()) {
|
||||
|
||||
Reference in New Issue
Block a user