[#22854] Objects lag behind mouse pointer when transformed (translated)
authorMartin Poirier <theeth@yahoo.com>
Sun, 21 Nov 2010 18:31:00 +0000 (18:31 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 21 Nov 2010 18:31:00 +0000 (18:31 +0000)
[#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.

source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_snap.c

index 63287f8..34c0e17 100644 (file)
@@ -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;
index 06a2db5..d5f14f0 100644 (file)
@@ -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]);
                        }