mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 20:00:53 +00:00
chore(testing): added missing component filtering
This commit is contained in:
parent
0172bbe511
commit
0432769bda
@ -10,14 +10,15 @@ pub struct CorePlugin;
|
|||||||
impl Plugin for CorePlugin {
|
impl Plugin for CorePlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_plugins((
|
app.add_plugins((
|
||||||
ExportRegistryPlugin{
|
ExportRegistryPlugin {
|
||||||
|
component_filter: SceneFilter::Denylist(HashSet::from([
|
||||||
component_filter: SceneFilter::Denylist(HashSet::from([ // this is using Bevy's build in SceneFilter, you can compose what components you want to allow/deny
|
// this is using Bevy's build in SceneFilter, you can compose what components you want to allow/deny
|
||||||
TypeId::of::<ComponentAToFilterOut>(),
|
TypeId::of::<ComponentAToFilterOut>(),
|
||||||
TypeId::of::<ComponentBToFilterOut>(),
|
TypeId::of::<ComponentBToFilterOut>(),
|
||||||
// and any other commponent you want to include/exclude
|
// and any other commponent you want to include/exclude
|
||||||
])),
|
])),
|
||||||
..Default::default()},
|
..Default::default()
|
||||||
|
},
|
||||||
BlueprintsPlugin {
|
BlueprintsPlugin {
|
||||||
library_folder: "blueprints".into(),
|
library_folder: "blueprints".into(),
|
||||||
format: GltfFormat::GLB,
|
format: GltfFormat::GLB,
|
||||||
|
Loading…
Reference in New Issue
Block a user