[#21433] Angular rotation snap issue, final value set is not snapped - SVN 27250...
authorMartin Poirier <theeth@yahoo.com>
Sun, 7 Mar 2010 15:36:52 +0000 (15:36 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 7 Mar 2010 15:36:52 +0000 (15:36 +0000)
Needed to reassign calculated rotation into the values vector.

source/blender/editors/transform/transform.c

index f192656..e845f8f 100644 (file)
@@ -3004,6 +3004,8 @@ int Rotation(TransInfo *t, short mval[2])
                sprintf(str, "Rot: %.2f%s %s", 180.0*final/M_PI, t->con.text, t->proptext);
        }
        
+       t->values[0] = final;
+
        vec_rot_to_mat3( mat, t->axis, final);
        
        // TRANSFORM_FIX_ME