diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-07 12:05:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 12:05:35 +0100 |
commit | 6c3170e875bcb2606f08cde731f8b800801ef751 (patch) | |
tree | 09d0a82862991e975119fd29276b0fe7ba3a639d /doc/classes | |
parent | 8c3d8b12ed1b02670a58f8267ab414f76d00ce3f (diff) | |
parent | f9d4f080901ffbe1b4cc92728c0bc41074068359 (diff) |
Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saver
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ResourceSaver.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/classes/ResourceSaver.xml b/doc/classes/ResourceSaver.xml index 3872db5ea9..a029fb9acf 100644 --- a/doc/classes/ResourceSaver.xml +++ b/doc/classes/ResourceSaver.xml @@ -21,15 +21,18 @@ <return type="int" enum="Error" /> <argument index="0" name="path" type="String" /> <argument index="1" name="resource" type="Resource" /> - <argument index="2" name="flags" type="int" enum="ResourceSaver.SaverFlags" default="0" /> + <argument index="2" name="flags" type="int" default="0" /> <description> Saves a resource to disk to the given path, using a [ResourceFormatSaver] that recognizes the resource object. - The [code]flags[/code] bitmask can be specified to customize the save behavior. + The [code]flags[/code] bitmask can be specified to customize the save behavior using [enum SaverFlags] flags. Returns [constant OK] on success. </description> </method> </methods> <constants> + <constant name="FLAG_NONE" value="0" enum="SaverFlags"> + No resource saving option. + </constant> <constant name="FLAG_RELATIVE_PATHS" value="1" enum="SaverFlags"> Save the resource with a path relative to the scene which uses it. </constant> |