Check for COMMIT_NEW in the visual tools correctly

Originally committed to SVN as r5850.
This commit is contained in:
Thomas Goyne 2011-11-16 19:54:35 +00:00
parent 55fc6c753e
commit 3dd5cbd31d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void VisualToolBase::OnCommit(int type) {
holding = false;
dragging = false;
if (type & AssFile::COMMIT_NEW || type & AssFile::COMMIT_SCRIPTINFO) {
if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_SCRIPTINFO) {
int script_w, script_h;
c->ass->GetResolution(script_w, script_h);
script_res = Vector2D(script_w, script_h);