diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-11-21 21:31:00 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-11-21 21:31:00 +0300 |
commit | 01c6b6f1e94bec6165e36de33c1297bdce90130c (patch) | |
tree | a8dfbab5ddd45eed486da140b70d9fba79e490f5 | |
parent | 8a92513032d034ccf22108e5986e5dccd1a7f944 (diff) |
[#22854] Objects lag behind mouse pointer when transformed (translated)
[#24652] Project vertices button showing in object mode and leads to wrong behavior.
Removing soft redraw (code is still there in case we need it eventually) on mouse move, now that events are compressed.
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 63287f86464..34c0e17f7d2 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -574,7 +574,9 @@ int transformEvent(TransInfo *t, wmEvent *event) t->mval[0] = event->x - t->ar->winrct.xmin; t->mval[1] = event->y - t->ar->winrct.ymin; - t->redraw |= TREDRAW_SOFT; + // t->redraw |= TREDRAW_SOFT; /* Use this for soft redraw. Might cause flicker in object mode */ + t->redraw |= TREDRAW_HARD; + if (t->state == TRANS_STARTING) { t->state = TRANS_RUNNING; diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 06a2db527fd..d5f14f0a470 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -261,6 +261,8 @@ void applyProject(TransInfo *t) } else if (t->flag & T_OBJECT) { + td->ob->recalc |= OB_RECALC_ALL; + object_handle_update(t->scene, td->ob); VECCOPY(iloc, td->ob->obmat[3]); } |