画像から続きを描いて何も描画しなかった時に、不正な動画が作成される事があったのを修正。 - #128
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
画像から続きを描いた時に、古い掲示板の多くは動画を保存していませんでした。
しかし、画像から続きを描いた時にもレイヤー情報を保存するため、画像から続きを描いた時にも動画を保存する仕様の掲示板はいくつかあります。
この時に、画像をキャンバスに読み込んだあと、何も描画せずに投稿を完了すると、空の配列をデータにセットした不正な動画が作成されてしまい、動画の再生も動画から続きを描く事もできなくなる事が判明しました。
この状態になると、いったんNEOに画像を読み込んであとから描こうと思っても、動画が壊れているため、動画から続きを描く事ができず、画像から続きを描くを選択する事になります。
そのため、データが空だった時には動画ファイルの作成を中止して画像だけ送信します。
また、描画履歴が空のときには、アンドゥの履歴をpushして、画像を記録し、空の動画データが作成されるのを回避します。