Skip to content

Commit

Permalink
Add register_type for UiMaterialHandle and AnimationGraphHandle (
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-blackbird authored Oct 9, 2024
1 parent 05b0f28 commit 57c297b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions crates/bevy_animation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,7 @@ impl Plugin for AnimationPlugin {
.register_type::<AnimationPlayer>()
.register_type::<AnimationTarget>()
.register_type::<AnimationTransitions>()
.register_type::<AnimationGraphHandle>()
.register_type::<NodeIndex>()
.register_type::<ThreadedAnimationGraphs>()
.init_resource::<ThreadedAnimationGraphs>()
Expand Down
10 changes: 6 additions & 4 deletions crates/bevy_ui/src/render/ui_material_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ where
"ui_material.wgsl",
Shader::from_wgsl
);
app.init_asset::<M>().add_plugins((
ExtractComponentPlugin::<UiMaterialHandle<M>>::extract_visible(),
RenderAssetPlugin::<PreparedUiMaterial<M>>::default(),
));
app.init_asset::<M>()
.register_type::<UiMaterialHandle<M>>()
.add_plugins((
ExtractComponentPlugin::<UiMaterialHandle<M>>::extract_visible(),
RenderAssetPlugin::<PreparedUiMaterial<M>>::default(),
));

if let Some(render_app) = app.get_sub_app_mut(RenderApp) {
render_app
Expand Down

0 comments on commit 57c297b

Please sign in to comment.