Skip to content

Commit cfd7aca

Browse files
Move camera frame in the case an existing commit is found
1 parent 2c18c7e commit cfd7aca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git_story/git_story.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def parseCommits(self, commit, i, prevCircle, toFadeOut):
228228
break
229229

230230
else:
231+
self.play(self.camera.frame.animate.move_to(self.drawnCommits[commit.hexsha].get_center()))
231232
self.play(Create(arrow))
232233
toFadeOut.add(arrow)
233234
return

0 commit comments

Comments
 (0)