Skip to content

Commit

Permalink
The property outside not propagated correctly on skeleton elements (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored Jul 2, 2024
1 parent 4ccc29d commit 688e0c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.d/20240702_085300_boris.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- The property "outside" not propagated correctly on skeleton elements
(<https://github.com/cvat-ai/cvat/pull/8105>)
3 changes: 2 additions & 1 deletion cvat-core/src/object-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export function propagateShapes<T extends SerializedShape | ObjectState>(
attributes: shape.attributes,
points: shape.shapeType === 'skeleton' ? null : shape.points,
occluded: shape.occluded,
outside: shape.outside,
objectType: shape.objectType !== ObjectType.TRACK ? shape.objectType : ObjectType.SHAPE,
shapeType: shape.shapeType,
label: shape.label,
Expand All @@ -392,7 +393,7 @@ export function propagateShapes<T extends SerializedShape | ObjectState>(
.map((element: SerializedShape): SerializedShape => getCopy(element as T) as SerializedShape) : [],
source: shape.source,
group: 0,
outside: false,
outside: shape.outside,
};
};

Expand Down

0 comments on commit 688e0c5

Please sign in to comment.