diff --git a/client/dive-common/components/Viewer.vue b/client/dive-common/components/Viewer.vue index dc1a32b59..be9fa814d 100644 --- a/client/dive-common/components/Viewer.vue +++ b/client/dive-common/components/Viewer.vue @@ -550,7 +550,6 @@ export default defineComponent({ trackStyleManager.populateTypeStyles(meta.customTypeStyling); groupStyleManager.populateTypeStyles(meta.customGroupStyling); - if (meta.customTypeStyling) { trackFilters.importTypes(Object.keys(meta.customTypeStyling), false); } diff --git a/client/platform/desktop/frontend/components/ImportDialog.vue b/client/platform/desktop/frontend/components/ImportDialog.vue index 5029e62c6..bf09cdb27 100644 --- a/client/platform/desktop/frontend/components/ImportDialog.vue +++ b/client/platform/desktop/frontend/components/ImportDialog.vue @@ -44,7 +44,7 @@ export default defineComponent({ argCopy.value.jsonMeta.attributes = {}; // Create x, y, z attributes - ['x', 'y', 'z'].forEach((attributeKey) => { + ['stereo3d_x', 'stereo3d_y', 'stereo3d_z'].forEach((attributeKey) => { // ugly but necessary to avoid typescript error (argCopy.value.jsonMeta.attributes as Record)[attributeKey] = { belongs: 'detection', diff --git a/client/src/components/track_3d_viewer/useTrackDrawer.ts b/client/src/components/track_3d_viewer/useTrackDrawer.ts index e20dddcae..2d763745d 100644 --- a/client/src/components/track_3d_viewer/useTrackDrawer.ts +++ b/client/src/components/track_3d_viewer/useTrackDrawer.ts @@ -261,7 +261,7 @@ export default function useTrackDrawer({ return; } - const { x, y, z } = attributes; + const { stereo3d_x: x, stereo3d_y: y, stereo3d_z: z } = attributes; if (x === undefined || y === undefined || z === undefined) { return;