From 51731c91cb82ad618a5a1a27b443ace4c7f02c30 Mon Sep 17 00:00:00 2001 From: Jules BOURDAIS Date: Wed, 21 Jun 2023 16:57:07 +0200 Subject: [PATCH] prefix x,y,z attributes with stereo3d_ --- client/dive-common/components/Viewer.vue | 1 - client/platform/desktop/frontend/components/ImportDialog.vue | 2 +- client/src/components/track_3d_viewer/useTrackDrawer.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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;