forked from 1b-agent/opencadstudio-upstream
feat(scene): integrate standard DWG data
This commit is contained in:
1 parent
731df4a725
commit
eb23715605
38 files changed
+8376
-618
No files matched your search
+5
-1
@@ -172,7 +172,11 @@ pub async fn open_path_with_phase(
|
||||
10000,
|
||||
);
|
||||
};
|
||||
let mut caches = crate::scene::build_derived_caches_with_progress(&doc, &cache_progress);
|
||||
let mut caches = crate::scene::build_derived_caches_with_progress(
|
||||
&doc,
|
||||
&cache_progress,
|
||||
path2.parent(),
|
||||
);
|
||||
caches.timings = crate::scene::OpenTimings {
|
||||
parse_ms,
|
||||
purge_ms,
|
||||
|
||||
@@ -106,6 +106,8 @@ pub fn parse_obj(src: &str, color: [f32; 4]) -> Option<MeshModel> {
|
||||
verts_low: Vec::new(),
|
||||
normals: norms,
|
||||
indices,
|
||||
triangle_material_handles: Vec::new(),
|
||||
triangle_colors: Vec::new(),
|
||||
color,
|
||||
selected: false,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user