Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-02-27 22:14:21 +0300
committerMartin Poirier <theeth@yahoo.com>2005-02-27 22:14:21 +0300
commitcfd5439bc698f5dc2693e0ae86cdf3c0c72d03ec (patch)
tree1f333ebd32887478751198ea67b887fc95453b90 /source/blender/blenlib/intern/arithb.c
parentdb892de35fb7f20f93cccf5287d69a9090ec4555 (diff)
Fixed Constraint projection code in perspective mode. When using a planar constraints, it follows the movement of the mouse exactly instead of just casting on the plane.
In user terms: the motion on screen of the selection follows the motion of the mouse pointer. Gives some errors when the constraint plane is nearly perpendicular to the view port though. Added a debug print function for 4D vectors to arithb.c Optimised the 3D -> view projection functions in view.c (a bit).
Diffstat (limited to 'source/blender/blenlib/intern/arithb.c')
-rw-r--r--source/blender/blenlib/intern/arithb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/arithb.c b/source/blender/blenlib/intern/arithb.c
index 095f8fb5052..95e07dda0c8 100644
--- a/source/blender/blenlib/intern/arithb.c
+++ b/source/blender/blenlib/intern/arithb.c
@@ -961,6 +961,14 @@ void printvecf( char *str, float v[3])
}
+void printvec4f( char *str, float v[4])
+{
+ printf("%s\n", str);
+ printf("%f %f %f %f\n",v[0],v[1],v[2], v[3]);
+ printf("\n");
+
+}
+
void printmatrix4( char *str, float m[][4])
{
printf("%s\n", str);