Fem: Remove property name comparison
This commit is contained in:
@@ -104,7 +104,7 @@ void ViewProviderFemConstraintTemperature::updateData(const App::Property* prop)
|
||||
float scaledheight = HEIGHT * pcConstraint->Scale.getValue();
|
||||
//float temperature = pcConstraint->temperature.getValue();
|
||||
|
||||
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