Skip to content

Conversation

andybak
Copy link
Contributor

@andybak andybak commented May 29, 2025

No description provided.

andybak and others added 21 commits January 11, 2025 12:34
Added StartTimeline on Cleared or Load sketches. Otherwise, the strokes that are out of frame will persist in the new or loaded sketch.
Updated DuplicateKeyFrame and SplitKeyFrame to account for grouped strokes. Previously it did not recognize grouped strokes, so when it was replicated to the new canvas, there was no key to the strokes, preventing users from selecting the stroke. When un-registered grouped strokes was selected, it will select the original grouped strokes in the previous canvas.

Refactored blocks of code in DuplicateKeyFrame and SplitKeyFrame onto ReplicateStrokes.
Added new lines of code and parameter for ReplicateStrokes. Also renamed it to ReplicateStrokesToNewCanvas.

DuplicateStrokes from SketchMemoryScript is also copying strokes that were marked NotCreated. This occurs when joining strokes are "uncreated" to complete the join.
Wholly changed ResetTimeline to prevent Destroy() and Instantiate() during Update(). Prefabs are made to accommodate this change, which contains 8 nodes (frames and notches) at start. As the frames increase, we instantiate the needed nodes for them. No instantiate will trigger if we have enough nodes. ResetTimeline() only contains other functions. A new function called UpdateNodes() handles the prefabs and instantiating of new nodes.

UpdateTimelineSlider() is also updated to handle the scrolling of the new prefabs.

"public List<GameObject> trackNodesWidget;" and "public GameObject frameNotchesWidget;" are declared in AnimationUI_Manager. In-editor, these are assigned their respective prefabs. trackNodesWidget will have a length of 7. These are childed under TimelineField, with frameNotchesWidget at index 0.
Fixed line of code in SketchWriter where it did not have an if-statement on the local dictionary. This resolves the issue with "deleted" canvases in the animation
grid. Also fixed bug where deleted tracks are showing up when playing the timeline. "Deleted" canvases will not be saved as the SketchWriter will only recognize
non-deleted canvases.

Fixed SplitKeyFrames so it will return early if the head of the frame is selected.
Fixed ReplicateStrokes to account for Batches that do not have Geometry. This occurs when "erasing" joined strokes. The batch will
be memorized, but there is no geometry. If no geometry, then we'll uncreate the batch.

Fixed RemoveKeyFrame to break up a keyframe that has been extended. An empty extended keyframe will return an out-of-index error.

updateFrameInfo is changed to disambiguate the UI. A colon implies there are seconds and nano-seconds when it's not the case.
# Conflicts:
#	Assets/Scripts/ModelCatalog.cs
#	Assets/Scripts/Save/SketchMetadata.cs
#	Assets/Scripts/Widgets/ModelWidget.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants