diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-11-14 21:27:25 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-11-14 21:27:25 +0300 |
commit | 7f0877f0dc0ae4191a9bc608bad85c81693c15dd (patch) | |
tree | 2f89ec2c54de7d02ed49f0ac06a64cb17a555a6a /source/blender/editors/transform/transform_orientations.c | |
parent | bc7903c858be3464b26a235ca341766f406b3eca (diff) |
bugfix [#24697]
Proper fix: change the poll function to reflect actual operator requirements.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 69cd9a3c03e..dcfad455575 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -342,17 +342,15 @@ void BIF_removeTransformOrientationIndex(bContext *C, int index) { } void BIF_selectTransformOrientation(bContext *C, TransformOrientation *target) { + ListBase *transform_spaces = &CTX_data_scene(C)->transform_spaces; View3D *v3d = CTX_wm_view3d(C); - if(v3d) { - ListBase *transform_spaces = &CTX_data_scene(C)->transform_spaces; - TransformOrientation *ts = transform_spaces->first; - int i; - - for (i = 0, ts = transform_spaces->first; ts; ts = ts->next, i++) { - if (ts == target) { - v3d->twmode = V3D_MANIP_CUSTOM + i; - break; - } + TransformOrientation *ts = transform_spaces->first; + int i; + + for (i = 0, ts = transform_spaces->first; ts; ts = ts->next, i++) { + if (ts == target) { + v3d->twmode = V3D_MANIP_CUSTOM + i; + break; } } } |