diff --git a/MeshLib/PropertyVector.h b/MeshLib/PropertyVector.h index 432a5ef3e58123721c3b5ddcfe41c97e4c6a59d8..7a1dd128b40821bdcaf9b3e592f42f279283efeb 100644 --- a/MeshLib/PropertyVector.h +++ b/MeshLib/PropertyVector.h @@ -197,7 +197,8 @@ public: ); // copy pointers to property values for (std::size_t j(0); j<_values.size(); j++) { - t->initPropertyValue(j, *(_values[j])); + std::vector<T> values(_values[j], _values[j] + _n_components); + t->initPropertyValue(j, values); } return t; }