05-31-2016, 07:13 PM
In the Tool sample, dragging the tool calls draw::ellipse, but with the Adobe SDK one has to call sAIUndo->UndoChanges( ) at the beginning of each drag iteration. Is this because the ellipse automatically disappears when the function goes out of scope? If my function draws custom art, I presume I need to call hdi::core::CurrentDocument::undo before redrawing the art at a new size or orientation; Is this correct?