Build production-ready editor authoring workflows
CI / Format, lint, test, build (push) Waiting to run
CI / Format, lint, test, build (push) Waiting to run
This commit is contained in:
1 parent
cc1fa6ea3b
commit
0553a85220
163 files changed
+34547
-1565
No files matched your search
@@ -1,5 +1,6 @@
|
||||
//! Asset catalog, database, thumbnails, materials, and prefab overrides.
|
||||
|
||||
pub mod animation;
|
||||
pub mod asset_db;
|
||||
mod catalog;
|
||||
mod import;
|
||||
@@ -11,6 +12,25 @@ pub mod thumbnails;
|
||||
|
||||
pub use catalog::*;
|
||||
pub use thumbnails::{
|
||||
draw_asset_cell_with, invalidate_on_catalog_refresh, kind_icon, prefetch_folder_thumbnails,
|
||||
AssetThumbnailCache, ThumbnailCacheSnapshot, ThumbnailState, ThumbnailStudio, ThumbnailsPlugin,
|
||||
draw_asset_cell_with, gltf_skinned_primitive_labels, invalidate_on_catalog_refresh, kind_icon,
|
||||
prefetch_folder_thumbnails, AssetThumbnailCache, ThumbnailCacheSnapshot, ThumbnailState,
|
||||
ThumbnailStudio, ThumbnailsPlugin,
|
||||
};
|
||||
|
||||
/// Refreshes both generated contracts derived from one imported model source.
|
||||
pub fn refresh_model_artifacts(
|
||||
record: &mut asset_db::AssetRecord,
|
||||
) -> Result<static_mesh::StaticMeshManifest, String> {
|
||||
let static_mesh = static_mesh::refresh_static_mesh_artifact(record);
|
||||
let animation = animation::refresh_animation_artifact(record);
|
||||
match (static_mesh, animation) {
|
||||
(Ok(static_mesh), Ok(_)) => Ok(static_mesh),
|
||||
(Err(static_error), Ok(_)) => Err(format!("static mesh processor failed: {static_error}")),
|
||||
(Ok(_), Err(animation_error)) => {
|
||||
Err(format!("animation processor failed: {animation_error}"))
|
||||
}
|
||||
(Err(static_error), Err(animation_error)) => Err(format!(
|
||||
"static mesh processor failed: {static_error}; animation processor failed: {animation_error}"
|
||||
)),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user