Merge branch 'peristent_property_manager' into 'master'
add method to property manager to set property persistent See merge request OpenMesh/OpenMesh!293
This commit is contained in:
@@ -593,6 +593,17 @@ class PropertyManager {
|
|||||||
src.copy_to(src_range, dst, dst_range);
|
src.copy_to(src_range, dst, dst_range);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mark whether this property should be stored when mesh is written
|
||||||
|
* to a file
|
||||||
|
*
|
||||||
|
* @param _persistence Property will be stored iff _persistence is true
|
||||||
|
*/
|
||||||
|
void set_persistent(bool _persistence = true)
|
||||||
|
{
|
||||||
|
mesh().property(getRawProperty()).set_persistent(_persistence);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void deleteProperty() {
|
void deleteProperty() {
|
||||||
if (!retain_ && prop_.is_valid())
|
if (!retain_ && prop_.is_valid())
|
||||||
|
|||||||
Reference in New Issue
Block a user