Skip to content

Commit

Permalink
Rename NannouMesh -> NannouTransient.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Sep 29, 2024
1 parent a34a603 commit 8d66064
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bevy_nannou_draw/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Plugin for NannouRenderPlugin {
app.add_systems(Startup, setup_default_texture)
.add_plugins((
ExtractComponentPlugin::<NannouTextureHandle>::default(),
ExtractComponentPlugin::<NannouMesh>::default(),
ExtractComponentPlugin::<NannouTransient>::default(),
ExtractComponentPlugin::<ShaderModelMesh>::default(),
ExtractComponentPlugin::<IndirectMesh>::default(),
ExtractComponentPlugin::<InstancedMesh>::default(),
Expand Down Expand Up @@ -656,7 +656,7 @@ fn update_draw_mesh(
Visibility::default(),
InheritedVisibility::default(),
ViewVisibility::default(),
NannouMesh,
NannouTransient,
NoFrustumCulling,
DrawIndex(idx),
window_layers.clone(),
Expand Down Expand Up @@ -693,7 +693,7 @@ fn update_draw_mesh(
Visibility::default(),
InheritedVisibility::default(),
ViewVisibility::default(),
NannouMesh,
NannouTransient,
NoFrustumCulling,
DrawIndex(idx),
window_layers.clone(),
Expand All @@ -715,7 +715,7 @@ fn update_draw_mesh(
InheritedVisibility::default(),
ViewVisibility::default(),
ShaderModelMesh,
NannouMesh,
NannouTransient,
NoFrustumCulling,
DrawIndex(idx),
window_layers.clone(),
Expand Down Expand Up @@ -744,7 +744,7 @@ fn check_and_despawn_empty_mesh(meshes: &mut ResMut<Assets<Mesh>>, mesh: &mut Ha
pub struct DrawIndex(pub usize);

#[derive(Component, ExtractComponent, Clone)]
pub struct NannouMesh;
pub struct NannouTransient;

#[derive(Component, ExtractComponent, Clone)]
pub struct ShaderModelMesh;
Expand Down
4 changes: 2 additions & 2 deletions nannou/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use bevy_inspector_egui::DefaultInspectorConfigPlugin;
use crate::frame::{Frame, FramePlugin};
use crate::prelude::bevy_ecs::system::SystemState;
use crate::prelude::bevy_reflect::DynamicTyped;
use crate::prelude::render::{NannouMesh, NannouShaderModelPlugin, ShaderModel};
use crate::prelude::render::{NannouTransient, NannouShaderModelPlugin, ShaderModel};
use crate::render::{
compute::{Compute, ComputeModel, ComputePlugin, ComputeShaderHandle, ComputeState},
NannouRenderNode, RenderApp, RenderPlugin,
Expand Down Expand Up @@ -1075,7 +1075,7 @@ where
fn first<M>(
mut commands: Commands,
bg_color_q: Query<Entity, With<BackgroundColor>>,
meshes_q: Query<Entity, With<NannouMesh>>,
meshes_q: Query<Entity, With<NannouTransient>>,
) where
M: 'static + Send + Sync,
{
Expand Down

0 comments on commit 8d66064

Please sign in to comment.