Undo with MDGModifier?

Undo with MDGModifier?

Anonymous
Not applicable
242 Views
0 Replies
Message 1 of 1

Undo with MDGModifier?

Anonymous
Not applicable
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
0 Likes
243 Views
0 Replies
Replies (0)