CGCookie / addon_common

GNU General Public License v3.0
41 stars 7 forks source link

exiting the addon #16

Open talmazov opened 4 years ago

talmazov commented 4 years ago

I noticed today that when calling self.done(cancel = True) from within an fsm state (on ESC press) that the operator does not exit unless mouse cursor hovers outside the main UI addon window.

not sure if this is an issue or it was intended this way.

PS: is self.done(cancel = True) more elegant way of exiting the addon altogether than self.done()

[edited by patmo141]

patmo141 commented 4 years ago

for part b.

self.done() will run the end_commit() method self.done(cancel = True) will run end_cancel() method

They are for two different things....canceling vs committing