Message 1 of 1
Undo with MDGModifier?

Not applicable
08-17-2012
05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am building a tool that changes the vertex colors of a mesh. For performance reasons I use OpenMayas MFnMesh.setFaceVertexcolors() method and it works great.
I also want to undo the changes I made, so I put in a MDGModifier as argument to the method and Undo also works fine.
The problem starts when a mesh does not have a construction history due to deleting it or duplicating an object. After that the MDGModifier.undoIt() does not work anymore.
Does someone have a hint on how to make it work again?
Thank you very much,
Cheers,
Malte
I am building a tool that changes the vertex colors of a mesh. For performance reasons I use OpenMayas MFnMesh.setFaceVertexcolors() method and it works great.
I also want to undo the changes I made, so I put in a MDGModifier as argument to the method and Undo also works fine.
The problem starts when a mesh does not have a construction history due to deleting it or duplicating an object. After that the MDGModifier.undoIt() does not work anymore.
Does someone have a hint on how to make it work again?
Thank you very much,
Cheers,
Malte