Tool#onCancel
does not fire when a tool is reselected by command
#909
Labels
Tool#onCancel
does not fire when a tool is reselected by command
#909
SketchUp Ruby API Issue
The
#onCancel
callback for Ruby tools does not fire when a tool is reselected by command.The callback is supposed to be called and return
1
.But I can never get this to happen, whether I use the same tool instance for a model or re-instantiate the tool object for each command call.
We often want to use the
onCancel
callback to set state or persistent data. We cannot do this easily if this reason was short-circuited because it was thought that it did not matter as the tool would be or should be reactivated at it's initial state.Is there any indication in the code comments when this stopped working and why?
RELATED ISSUES
Issue 552 : Define constants for Tool
onCancel
reasonsIssue 458 :
onCancel
- No indication of Undo versus RedoIssue 176 : Undocumented behaviour of tool event return value
The text was updated successfully, but these errors were encountered: