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>2009-10-29 21:59:48 +0300
committerMartin Poirier <theeth@yahoo.com>2009-10-29 21:59:48 +0300
commit9a13a84f15e169d3b0bcd2e3047090cc625a133e (patch)
tree132d78b24905a0583499edd0b3edffab353b8d99 /source/blender/editors/transform/transform_orientations.c
parent98527a71061735a20b712a2c4d552c0c966e5798 (diff)
No need to force ortho on a unit matrix
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 933d3303437..efcaedd2fe1 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -581,12 +581,13 @@ void initTransformOrientation(bContext *C, TransInfo *t)
case V3D_MANIP_LOCAL:
strcpy(t->spacename, "local");
- if(ob)
+ if(ob) {
Mat3CpyMat4(t->spacemtx, ob->obmat);
- else
+ Mat3Ortho(t->spacemtx);
+ } else {
Mat3One(t->spacemtx);
+ }
- Mat3Ortho(t->spacemtx);
break;
case V3D_MANIP_VIEW: