diff options
author | reduz <reduzio@gmail.com> | 2022-04-12 16:07:09 +0200 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2022-04-13 15:06:56 +0200 |
commit | 66009318e0827f01a584aca14c6e9ec0079354d3 (patch) | |
tree | 181c70173bdbf55dac3d7eeb38fb6423bcf3a436 /doc/classes/EditorSceneFormatImporter.xml | |
parent | 43f94c95aa88d5fc0180bb4ee5c8ce44d27dbc0f (diff) |
Import scenes as AnimationLibrary
Added the ability to import scenes as AnimationLibrary
* Completes implementation of https://github.com/godotengine/godot-proposals/issues/4296
* Helps if you want to export animations to a separate file (say a GLTF) to avoid re-importing/exporting them every time the model changes.
* Helps if you simply want to have animations using a dummy model, which can be shared across multiple models.
Creates a secondary scene importer used only for animations.
**NOTE**: A new flag for scene importer: EditorSceneFormatImporter.IMPORT_DISCARD_MESHES_AND_MATERIALS has been added, to hint importers that they should skip meshes and animations (and hence make importing faster). It is not implemented in any importer yet, this should be done in a separate PR.
Diffstat (limited to 'doc/classes/EditorSceneFormatImporter.xml')
-rw-r--r-- | doc/classes/EditorSceneFormatImporter.xml | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/doc/classes/EditorSceneFormatImporter.xml b/doc/classes/EditorSceneFormatImporter.xml index 63c1498f20..0290d7207d 100644 --- a/doc/classes/EditorSceneFormatImporter.xml +++ b/doc/classes/EditorSceneFormatImporter.xml @@ -29,16 +29,8 @@ <method name="_get_option_visibility" qualifiers="virtual const"> <return type="Variant" /> <argument index="0" name="path" type="String" /> - <argument index="1" name="option" type="String" /> - <description> - </description> - </method> - <method name="_import_animation" qualifiers="virtual"> - <return type="Animation" /> - <argument index="0" name="path" type="String" /> - <argument index="1" name="flags" type="int" /> - <argument index="2" name="options" type="Dictionary" /> - <argument index="3" name="bake_fps" type="int" /> + <argument index="1" name="for_animation" type="bool" /> + <argument index="2" name="option" type="String" /> <description> </description> </method> @@ -63,5 +55,7 @@ </constant> <constant name="IMPORT_USE_NAMED_SKIN_BINDS" value="16"> </constant> + <constant name="IMPORT_DISCARD_MESHES_AND_MATERIALS" value="32"> + </constant> </constants> </class> |