|
@@ -8,7 +8,7 @@
|
|
|
@delete="deleteAm"
|
|
|
/>
|
|
|
<Right
|
|
|
- v-if="focusAM"
|
|
|
+ v-if="focusAM && !play"
|
|
|
:am="focusAM"
|
|
|
:frameAction="frameAction"
|
|
|
@change-frame-action="(f) => (frameAction = f.action)"
|
|
@@ -21,7 +21,7 @@
|
|
|
@apply-global="k => ams.forEach((am: any) => (am[k] = focusAM![k]))"
|
|
|
/>
|
|
|
<GlobalFrame
|
|
|
- v-if="activeAttrib?.key !== 'frames'"
|
|
|
+ v-if="activeAttrib?.key !== 'frames' && !play"
|
|
|
:data="{ id: '0', name: 'global-frame', time: 0 }"
|
|
|
:frame-action="frameAction"
|
|
|
@change-frame-action="(action) => (frameAction = action.action)"
|
|
@@ -54,15 +54,28 @@ import { getAddTLItemAttr } from "@/components/drawing-time-line/check";
|
|
|
import { Message } from "bill/expose-common";
|
|
|
import { mergeFuns, uuid } from "@/components/drawing/hook";
|
|
|
import { title } from "./type";
|
|
|
-import { amMap, getAMKey, currentTime } from "@/sdk/association/animation";
|
|
|
+import { amMap, getAMKey, currentTime, play } from "@/sdk/association/animation";
|
|
|
import { AnimationModel3D } from "@/sdk";
|
|
|
-import { showBottomBarStack, showRightPanoStack } from "@/env";
|
|
|
+import {
|
|
|
+ showBottomBarStack,
|
|
|
+ showLeftCtrlPanoStack,
|
|
|
+ showLeftPanoStack,
|
|
|
+ showRightPanoStack,
|
|
|
+ showSearchStack,
|
|
|
+} from "@/env";
|
|
|
|
|
|
enterEdit(() => router.back());
|
|
|
initialAnimationModels();
|
|
|
// useViewStack(autoSaveAnimationModel);
|
|
|
-useViewStack(() => showBottomBarStack.push(ref(true)));
|
|
|
-useViewStack(() => showRightPanoStack.push(computed(() => !!focusAM.value)));
|
|
|
+useViewStack(() =>
|
|
|
+ mergeFuns(
|
|
|
+ showBottomBarStack.push(ref(true)),
|
|
|
+ showRightPanoStack.push(computed(() => !!focusAM.value && !play.value)),
|
|
|
+ showLeftPanoStack.push(computed(() => !play.value)),
|
|
|
+ showLeftCtrlPanoStack.push(computed(() => !play.value)),
|
|
|
+ showSearchStack.push(computed(() => !play.value))
|
|
|
+ )
|
|
|
+);
|
|
|
|
|
|
const focusAM = ref<AnimationModel>();
|
|
|
const activeAttrib = ref<Active>();
|