Skip to content

Commit

Permalink
Removed comented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyTornetta committed Sep 11, 2024
1 parent 970d6c1 commit b09145e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
19 changes: 0 additions & 19 deletions cosmos_client/src/item/item_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,25 +446,6 @@ fn generate_block_item_model(
// dimensions? Seems kinda pointless.

Some((mesh, mat_id, dimension_index))
// commands.entity(to_create).insert((
// RenderedItem {
// based_off: translation,
// ui_element_entity: entity,
// item_id: changed_render_item.item_id,
// },
// meshes.add(mesh_builder.build_mesh()),
// RenderLayers::from_layers(&[render_layer]),
// Name::new(format!("Rendered Inventory Item ({})", changed_render_item.item_id)),
// ));
//
// event_writer.send(AddMaterialEvent {
// entity: to_create,
// add_material_id: mat_id,
// texture_dimensions_index,
// material_type: MaterialType::Illuminated,
// });
//
// true
}

pub(super) fn register(app: &mut App) {
Expand Down
20 changes: 1 addition & 19 deletions cosmos_client/src/ui/item_renderer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,24 +212,7 @@ fn render_items(

// Clear out any materials that were previously on this entity from previous renders
evw_remove_materials.send(RemoveAllMaterialsEvent { entity: to_create });
//
// if !generate_block_item_model(
// item,
// to_create,
// translation,
// entity,
// changed_render_item,
// &mut commands,
// &mut meshes,
// &block_items,
// &blocks,
// &block_materials_registry,
// &block_textures,
// &block_meshes,
// &material_definitions_registry,
// &mut event_writer,
// render_layer,
// ) {

generate_item_model(
item,
to_create,
Expand All @@ -241,7 +224,6 @@ fn render_items(
render_layer,
&item_mesh_materials,
);
// }
}
}

Expand Down

0 comments on commit b09145e

Please sign in to comment.