Add material library and targeted surface drops
This commit is contained in:
1 parent
3931de1f0a
commit
02247f029a
24 files changed
+2794
-150
No files matched your search
@@ -1855,7 +1855,7 @@ fn details_panel(world: &mut World, ui: &mut egui::Ui, selected_entities: &Selec
|
||||
}
|
||||
}
|
||||
|
||||
fn top_level_asset_details_panel(
|
||||
pub(crate) fn top_level_asset_details_panel(
|
||||
world: &mut World,
|
||||
ui: &mut egui::Ui,
|
||||
selected_entities: &SelectedEntities,
|
||||
@@ -2524,7 +2524,11 @@ fn save_material_draft(world: &mut World) {
|
||||
}
|
||||
}
|
||||
|
||||
fn create_material_instance_from_base(world: &mut World, base_path: &str, base_label: &str) {
|
||||
pub(crate) fn create_material_instance_from_base(
|
||||
world: &mut World,
|
||||
base_path: &str,
|
||||
base_label: &str,
|
||||
) {
|
||||
let base_reference = world
|
||||
.get_resource_mut::<crate::asset_db::AssetRegistry>()
|
||||
.ok_or_else(|| "Asset registry is unavailable".to_string())
|
||||
|
||||
Reference in new issue
Block a user