diff --git a/nahara-motion-ui/src/App.svelte b/nahara-motion-ui/src/App.svelte index 5f000d9..1f207d4 100644 --- a/nahara-motion-ui/src/App.svelte +++ b/nahara-motion-ui/src/App.svelte @@ -1,95 +1,17 @@ - - @@ -62,14 +64,14 @@ />
-
- +
diff --git a/nahara-motion-ui/src/ui/bar/TopBar.svelte b/nahara-motion-ui/src/ui/bar/TopBar.svelte index 2202fb6..97e367d 100644 --- a/nahara-motion-ui/src/ui/bar/TopBar.svelte +++ b/nahara-motion-ui/src/ui/bar/TopBar.svelte @@ -3,7 +3,7 @@ import { openMenuAt } from "../menu/MenuHost.svelte"; import { openPopupAt } from "../popup/PopupHost.svelte"; import RenderPane from "../render/RenderPane.svelte"; - import type { EditorImpl } from "../../App.svelte"; + import type { EditorImpl } from "../../App"; import type { DropdownEntry } from "../menu/FancyMenu"; export let editor: EditorImpl; diff --git a/nahara-motion-ui/src/ui/graph/AnimationGraphPane.svelte b/nahara-motion-ui/src/ui/graph/AnimationGraphPane.svelte index 43248d7..37c4087 100644 --- a/nahara-motion-ui/src/ui/graph/AnimationGraphPane.svelte +++ b/nahara-motion-ui/src/ui/graph/AnimationGraphPane.svelte @@ -1,13 +1,12 @@ @@ -56,10 +55,10 @@ {#if property instanceof motion.AnimatableObjectProperty} { cast(property).set($seekhead.position, e.detail); currentScene.update(a => a); }} + animating={!!property.animatable.getKeyframe($seekhead)} + on:update={e => { cast(property).set($seekhead, e.detail); currentScene.update(a => a); }} on:keyframebutton={() => handleKeyframeButton(property.animatable)} /> {:else if property instanceof motion.EnumObjectProperty} @@ -70,7 +69,7 @@ type: "simple", name: property.valueTranslator(v), click: () => { - property.set($seekhead.position, v); + property.set($seekhead, v); currentScene.update(a => a); } }))) @@ -79,8 +78,8 @@ {:else} { cast(property).set($seekhead.position, e.detail); currentScene.update(a => a); }} + value={property.get($seekhead)} + on:update={e => { cast(property).set($seekhead, e.detail); currentScene.update(a => a); }} /> {/if} {/each} diff --git a/nahara-motion-ui/src/ui/render/RenderPane.svelte b/nahara-motion-ui/src/ui/render/RenderPane.svelte index 65614c3..36197cb 100644 --- a/nahara-motion-ui/src/ui/render/RenderPane.svelte +++ b/nahara-motion-ui/src/ui/render/RenderPane.svelte @@ -1,6 +1,5 @@