Add argument to UndoRedo's "clear_history()" to not increase the version

This commit is contained in:
Michael Alexsander Silva Dias 2018-11-18 18:07:38 -02:00
parent f769e13c5e
commit 6ba94d5ca0
4 changed files with 10 additions and 6 deletions

View file

@ -102,8 +102,11 @@
<method name="clear_history">
<return type="void">
</return>
<argument index="0" name="increase_version" type="bool" default="true">
</argument>
<description>
Clear the undo/redo history and associated references.
Passing [code]false[/code] to [code]increase_version[/code] will prevent the version number to be increased from this.
</description>
</method>
<method name="commit_action">