Open domrab opened 2 years ago
To expand, AssertionError
s are not affected by this and do NOT break undo
Upon further testing, this might not be related to commands but to exceptions raised within the cmdx.DagModifier
?
Yes, I believe you are right. It shouldn't happen, the modifiers are explicitly protected against this here:
But I have also seen this. It is not deliberate and could be considered a bug. Happy to accept a PR if you manage to find a solution.
Trying to undo in maya results in:
// Error: line 1: Undo is temporarily unavailable. Try exiting the current tool. //
Calling
cmds.undoInfo(closeChunk=True)
seems to solve the issue.Is this a bug or is it deliberately left to the TDs to validate their inputs?