(path: &str)
| 1871 | if let Ok(paths) = scan_res_paths(Path::new(&state.project_root)) { |
| 1872 | state.file_paths = paths; |
| 1873 | } |
| 1874 | state.active_asset_path = out_path.clone(); |
| 1875 | state.log = format!("glb mat -> pmat\n{out_path}"); |
| 1876 | }); |
| 1877 | if selected_key.is_some() { |
| 1878 | attach_material_to_selected_node(ctx, &out_path); |
| 1879 | } else { |
| 1880 | refresh_all(ctx); |