0.10.4: button still-frames render only on their own state
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
fcb8edbb88
commit
8895fc76ef
8 files changed
+311
-23
No files matched your search
+7
-1
@@ -533,7 +533,13 @@ export const useSceneStore = defineStore('scene', {
|
||||
y: canvas.height / 2,
|
||||
}
|
||||
if (asset && 'fill' in asset) base.fill = asset.fill
|
||||
const initialTime = this.activeButtonAssetId ? BUTTON_STATE_TIMES.normal : 0
|
||||
// In button-edit mode, seed the initial keyframe on the state
|
||||
// the user is currently viewing — not always on 'normal'. Drops
|
||||
// in the 'disabled' pane then stay there; the layer doesn't
|
||||
// silently pop onto the normal frame.
|
||||
const initialTime = this.activeButtonAssetId
|
||||
? BUTTON_STATE_TIMES[this.activeButtonState ?? 'normal']
|
||||
: 0
|
||||
const layer: Layer = {
|
||||
id: uid(),
|
||||
name: name ?? asset?.name ?? 'Layer',
|
||||
|
||||
Reference in new issue
Block a user