File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,14 @@ export function useModelSurfacesStyle() {
88 const dataStyleStore = useDataStyleStore ( )
99 const dataBaseStore = useDataBaseStore ( )
1010
11+ function modelSurfacesStyle ( id ) {
12+ return dataStyleStore . getStyle ( id ) . surfaces
13+ }
1114 function modelSurfaceStyle ( id , surface_id ) {
12- if ( ! dataStyleStore . getStyle ( id ) . surfaces [ surface_id ] ) {
13- dataStyleStore . getStyle ( id ) . surfaces [ surface_id ] = { }
15+ if ( ! modelSurfacesStyle ( id ) [ surface_id ] ) {
16+ modelSurfacesStyle ( id ) [ surface_id ] = { }
1417 }
15- return dataStyleStore . getStyle ( id ) . surfaces [ surface_id ]
18+ return modelSurfacesStyle ( id ) [ surface_id ]
1619 }
1720
1821 function modelSurfaceVisibility ( id , surface_id ) {
@@ -74,7 +77,7 @@ export function useModelSurfacesStyle() {
7477 }
7578
7679 function applyModelSurfacesStyle ( id ) {
77- const style = dataStyleStore . getStyle ( id ) . surfaces
80+ const style = modelSurfacesStyle ( id )
7881 const surface_ids = dataBaseStore . getSurfacesUuids ( id )
7982 return Promise . all ( [
8083 setModelSurfacesVisibility ( id , surface_ids , style . visibility ) ,
You can’t perform that action at this time.
0 commit comments