mirror of
https://github.com/IllusionMan1212/3dobs.git
synced 2026-10-24 10:12:35 +00:00
show memory usage of loaded model(s)
This commit is contained in:
+3
-1
@@ -88,7 +88,9 @@ pub fn import_models_from_paths(paths: &Vec<PathBuf>, state: &mut ui::ui::State)
|
||||
|
||||
state.active_model = Some(m.id);
|
||||
if let Some(model_name) = filename {
|
||||
state.logger.log(&format!("Loaded model \"{}\"", model_name.to_str().unwrap()), log::LogLevel::Info);
|
||||
let msg = format!("Loaded model \"{}\"", model_name.to_str().unwrap());
|
||||
println!("{}", msg);
|
||||
state.logger.log(&msg, log::LogLevel::Info);
|
||||
m.name = model_name.to_str().unwrap().to_string();
|
||||
}
|
||||
state.objects.push(m);
|
||||
|
||||
Reference in New Issue
Block a user