-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- saveJSON works for one keyframe: one has to iterate over targetValues and create JSON for each frame - loadJSON does not work: one needs to load all frames into targetValues in order for it to work
- Loading branch information
1 parent
b17fc2d
commit 5abbedc
Showing
17 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...imationsEditor-Core.package/AnimationsEditorProperty.class/instance/isKeyframeExistent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
animation | ||
isKeyframeExistent | ||
|
||
^ (self targetValues isEmpty) not. |
15 changes: 10 additions & 5 deletions
15
...Editor-Core.package/AnimationsEditorProperty.class/instance/playAnimationWithStartEnd..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
animation | ||
playAnimationWithStartEnd: aStartEndProperty | ||
| animations comp | | ||
self copyOfTargetMorph: self targetMorph copy. | ||
animations := (self createCompositeAnimationFor: self targetMorph withStartEnd: aStartEndProperty). | ||
|
||
comp := AnimCompositeAnimation new. | ||
animations do: [:each | comp add: each.]. | ||
comp start. | ||
(self isKeyframeExistent) | ||
ifTrue: [ | ||
self copyOfTargetMorph: self targetMorph copy. | ||
animations := (self createCompositeAnimationFor: self targetMorph withStartEnd: aStartEndProperty). | ||
|
||
comp := AnimCompositeAnimation new. | ||
animations do: [:each | comp add: each.]. | ||
comp start.] | ||
|
||
ifFalse: [self animationsEditor updateInformationText: 'Please specify at least one keyframe to play an animation.']. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onsEditor-Core.package/AnimationsEditorPropertyPosition.class/instance/animationString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onsEditor-Core.package/AnimationsEditorPropertyRotation.class/instance/animationString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mationsEditor-Core.package/AnimationsEditorPropertySize.class/instance/animationString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters