aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-22 12:50:52 -0400
committerbobzel <zzzman@gmail.com>2022-08-22 12:50:52 -0400
commitd8f2a45a95a14151d3484c3c14f72d217a818786 (patch)
treec1e66f518367b28992b6ccc7f7adfca48db19725 /src/client/views/DocumentDecorations.tsx
parent96a15ed27e9b17a77e6cab72d4087ddfe6066d2a (diff)
made inkMasks animate when they are turned on /off. fixed inkStrokes to be interpolated when they have an activeFrame set.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 6d1397395..ab77af0f4 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -203,8 +203,8 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P
if (this._deleteAfterIconify) {
views.forEach(iconView => {
Doc.setNativeView(iconView.props.Document);
- if (iconView.props.Document.isInkMask && iconView.props.Document.activeFrame !== undefined) {
- iconView.props.Document.opacity = 0; // bcz: hacky ... allows inkMaks to be "turned off" without removing them from the collection which allows them to function properly in a presenation.
+ if (iconView.props.Document.activeFrame) {
+ iconView.props.Document.opacity = 0; // bcz: hacky ... allows inkMasks and other documents to be "turned off" without removing them from the animated collection which allows them to function properly in a presenation.
} else {
iconView.props.removeDocument?.(iconView.props.Document);
}