-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gltf_auto_export): rewrite for more cleaner code & a lot of bug …
…fixes (#109) * fundamental rewrite of a lot of aspects of the exporter, for cleaner code & to solve a number of issues * set export_separate_dynamic_and_static_objects default to FALSE, as it is an edge use case * added central tracker class, to track the post save & depsgraph changes * auto_export is now more operator centric, with functional undo * now storing add-on configuration at the blend file level (bpy.data.texts) * found source of export issues ! mismatch between context.scene & context.window.scene (the last we can set, the other not) * overhauled & cleaned up materials handling to avoid context issues & reliance on bpy.ops * huge restructure of how temporary scenes are created & cleaned up * added support for exports in edit_mode * updated examples * a lot more * fixes #103 * fixes #112 * fixes #113 * fixes #114 * fixes #115 * fixes #116
- Loading branch information
1 parent
7699e87
commit 2ae8351
Showing
142 changed files
with
1,145 additions
and
1,033 deletions.
There are no files selected for viewing
Binary file modified
BIN
-9.32 KB
(100%)
examples/bevy_gltf_blueprints/animation/assets/animation.blend
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/animation/assets/models/Level1.glb
Binary file not shown.
Binary file modified
BIN
-108 Bytes
(98%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-112 Bytes
(100%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Fox.glb
Binary file not shown.
Binary file modified
BIN
-104 Bytes
(98%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-104 Bytes
(100%)
examples/bevy_gltf_blueprints/animation/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-108 Bytes
(97%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-108 Bytes
(100%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-68 Bytes
(100%)
examples/bevy_gltf_blueprints/animation/assets/models/library/Wheelbot.glb
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/basic/assets/models/World.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(93%)
examples/bevy_gltf_blueprints/basic/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(93%)
examples/bevy_gltf_blueprints/basic/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(98%)
examples/bevy_gltf_blueprints/basic/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(90%)
examples/bevy_gltf_blueprints/basic/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(99%)
examples/bevy_gltf_blueprints/basic/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-376 Bytes
(93%)
examples/bevy_gltf_blueprints/basic/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
+216 Bytes
(100%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/World.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(98%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(90%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(99%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-376 Bytes
(93%)
...evy_gltf_blueprints/basic_scene_components/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
-1.12 KB
(100%)
examples/bevy_gltf_blueprints/basic_scene_components/assets/scene_components.blend
Binary file not shown.
Binary file modified
BIN
+22.7 KB
(100%)
examples/bevy_gltf_blueprints/basic_wasm/assets/advanced.blend
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/World.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(98%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(90%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(99%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-376 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_wasm/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
+22.7 KB
(100%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/advanced.blend
Binary file not shown.
Binary file modified
BIN
-63.1 KB
(9.1%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/World.glb
Binary file not shown.
Binary file modified
BIN
-384 Bytes
(94%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(93%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(98%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(90%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(99%)
examples/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-376 Bytes
(93%)
...es/bevy_gltf_blueprints/basic_xpbd_physics/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
+1.28 KB
(100%)
examples/bevy_gltf_blueprints/materials/assets/materials.blend
Binary file not shown.
Binary file modified
BIN
-2.86 KB
(99%)
examples/bevy_gltf_blueprints/materials/assets/materials/materials_materials_library.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/materials/assets/models/Level1.glb
Binary file not shown.
Binary file modified
BIN
-204 Bytes
(96%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-196 Bytes
(96%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-196 Bytes
(98%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Magic Sphere.glb
Binary file not shown.
Binary file modified
BIN
-200 Bytes
(99%)
examples/bevy_gltf_blueprints/materials/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-204 Bytes
(94%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-204 Bytes
(91%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Pillar2.glb
Binary file not shown.
Binary file modified
BIN
-204 Bytes
(99%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-200 Bytes
(98%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Watermelon cut.glb
Binary file not shown.
Binary file modified
BIN
-200 Bytes
(96%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Watermelon.glb
Binary file not shown.
Binary file modified
BIN
-200 Bytes
(97%)
examples/bevy_gltf_blueprints/materials/assets/models/library/Watermelon2.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/Level1.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/Level2.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/StartLevel.glb
Binary file not shown.
Binary file modified
BIN
-380 Bytes
(93%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-328 Bytes
(96%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/library/LevelTransition.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(90%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-388 Bytes
(99%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-376 Bytes
(93%)
examples/bevy_gltf_blueprints/multiple_levels/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
+2.57 KB
(100%)
examples/bevy_gltf_blueprints/multiple_levels/assets/multiple_levels.blend
Binary file not shown.
Binary file modified
BIN
+1.68 KB
(100%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/art/common.blend
Binary file not shown.
Binary file modified
BIN
-64.4 KB
(95%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/art/level1.blend
Binary file not shown.
Binary file modified
BIN
-44 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/art/level2.blend
Binary file not shown.
Binary file modified
BIN
-67.4 KB
(96%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/art/start_level.blend
Binary file not shown.
Binary file modified
BIN
-2.88 KB
(82%)
...eprints/multiple_levels_multiple_blendfiles/assets/materials/common_materials_library.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/Level1.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/Level2.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...les/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/StartLevel.glb
Binary file not shown.
Binary file modified
BIN
-636 Bytes
(89%)
...y_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
-636 Bytes
(81%)
...evy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Crystal.glb
Binary file not shown.
Binary file modified
BIN
-632 Bytes
(89%)
...tf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-632 Bytes
(28%)
...ltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Interactible.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
..._blueprints/multiple_levels_multiple_blendfiles/assets/models/library/LevelTransition.glb
Binary file not shown.
Binary file modified
BIN
-632 Bytes
(97%)
...gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...y_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Nest_test.glb
Binary file not shown.
Binary file modified
BIN
-636 Bytes
(84%)
...bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-636 Bytes
(98%)
...bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Portal.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...y_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Rock Pile.glb
Binary file not shown.
Binary file modified
BIN
-640 Bytes
(75%)
...s/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Rock.glb
Binary file not shown.
Binary file modified
BIN
-632 Bytes
(69%)
...tf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Sub_blueprint.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Template_Demo.glb
Binary file not shown.
Binary file modified
BIN
-624 Bytes
(89%)
...prints/multiple_levels_multiple_blendfiles/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
-640 Bytes
(75%)
...s/bevy_gltf_blueprints/multiple_levels_multiple_blendfiles/assets/models/library/Wall.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/World.glb
Binary file not shown.
Binary file modified
BIN
-592 Bytes
(90%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Container.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Enemy.glb
Binary file not shown.
Binary file modified
BIN
-596 Bytes
(75%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Finger.glb
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Hand.glb
Binary file not shown.
Binary file modified
BIN
-588 Bytes
(90%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
+36 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Humanoid_cactus.glb
Binary file not shown.
Binary file modified
BIN
-588 Bytes
(98%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-592 Bytes
(86%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Player 2.glb
Binary file not shown.
Binary file modified
BIN
-580 Bytes
(90%)
...les/bevy_gltf_blueprints/nested_blueprints/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
Binary file modified
BIN
+944 Bytes
(100%)
examples/bevy_gltf_blueprints/nested_blueprints/assets/nested.blend
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+65.4 KB
...components/basic/assets/models/level1.glb → ...components/basic/assets/models/Level1.glb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+33.5 KB
(100%)
examples/bevy_gltf_components/basic_wasm/assets/basic.blend
Binary file not shown.
Binary file renamed
BIN
+65.4 KB
...nents/basic_wasm/assets/models/level1.glb → ...nents/basic_wasm/assets/models/Level1.glb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/bevy_gltf_save_load/basic/assets/models/World_dynamic.glb
Binary file not shown.
Binary file modified
BIN
-508 Bytes
(73%)
examples/bevy_gltf_save_load/basic/assets/models/library/Ground.glb
Binary file not shown.
Binary file modified
BIN
-504 Bytes
(91%)
examples/bevy_gltf_save_load/basic/assets/models/library/Health_Pickup.glb
Binary file not shown.
Binary file modified
BIN
-508 Bytes
(98%)
examples/bevy_gltf_save_load/basic/assets/models/library/MagicTeapot.glb
Binary file not shown.
Binary file modified
BIN
-508 Bytes
(88%)
examples/bevy_gltf_save_load/basic/assets/models/library/Pillar.glb
Binary file not shown.
Binary file modified
BIN
-512 Bytes
(98%)
examples/bevy_gltf_save_load/basic/assets/models/library/Player.glb
Binary file not shown.
Binary file modified
BIN
-512 Bytes
(95%)
examples/bevy_gltf_save_load/basic/assets/models/library/Sphero.glb
Binary file not shown.
Binary file modified
BIN
-500 Bytes
(91%)
examples/bevy_gltf_save_load/basic/assets/models/library/Unused_in_level_test.glb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.