Skip to content

Commit

Permalink
feat(gltf_auto_export): component filtering for exports, bug-fixes an…
Browse files Browse the repository at this point in the history
…d tests(#143)

 * added filtering out of invalid components/ custom properties:
  * includes filtering out of invalid / disabled components as defined in bevy_components, components_meta etc
 * completely changed handling of "unique" (non blueprint) objects by copying them instead of moving/renaming them & manipulating their custom properties : much cleaner, much simpler !
 * disabled default gltf export of optimised animations
 * added tests !
 * closes #139 
 * closes #141 
 * closes #142 
 * closes #146
  • Loading branch information
kaosat-dev authored Feb 26, 2024
1 parent e83ef32 commit dfc2be8
Show file tree
Hide file tree
Showing 24 changed files with 11,518 additions and 72 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ members = [
"examples/bevy_gltf_save_load/basic/",
"examples/bevy_registry_export/basic",

"testing/bevy_registry_export/basic"
"testing/bevy_registry_export/basic",
"testing/bevy_example"

]
resolver = "2"

Expand Down
Binary file added testing/auto_export_template.blend
Binary file not shown.
16 changes: 16 additions & 0 deletions testing/bevy_example/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "bevy_example"
version = "0.3.0"
edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
bevy="0.12"
bevy_gltf_blueprints = { path = "../../crates/bevy_gltf_blueprints" }
bevy_registry_export = { path = "../../crates/bevy_registry_export" }
bevy_gltf_worlflow_examples_common = { path = "../../examples/common" }

bevy_rapier3d = { version = "0.23.0", features = [ "serde-serialize", "debug-render-3d", "enhanced-determinism"] }
bevy_asset_loader = { version = "0.18", features = ["standard_dynamic_assets" ]}
bevy_editor_pls = { version = "0.6" }
rand = "0.8.5"
15 changes: 15 additions & 0 deletions testing/bevy_example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Bevy registry export example/demo

This example showcases
* the use of the bevy_registry_export crate to extract all components & types information into a json file.
* That file is then used by the [Blender addon](https://github.com/kaosat-dev/Blender_bevy_components_workflow/tree/main/tools/bevy_components) to create Uis for each component,
to be able to add & edit Bevy components easilly in Blender !


## Running this example

```
cargo run --features bevy/dynamic_linking
```

Running the example also regenerates the registry.json file.
1 change: 1 addition & 0 deletions testing/bevy_example/assets/assets_core.assets.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({})
6 changes: 6 additions & 0 deletions testing/bevy_example/assets/assets_game.assets.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
({
"world":File (path: "models/World.glb"),
"models": Folder (
path: "models/library",
),
})
Loading

0 comments on commit dfc2be8

Please sign in to comment.