diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-26 02:49:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-26 02:49:32 +0400 |
commit | 3c7bfb1d7d3cbedddad864bdc50fe48033b56942 (patch) | |
tree | 8c37f76756bdbdd9ad81cd15a2e63310887b2e55 /source/blender/editors/transform/transform_orientations.c | |
parent | 84334bde01dd2ed7913cbddeea966b2f0364a2b9 (diff) |
fix for error in own recent commit, removing orientations.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index c8b6144d0f1..82c2d380d2e 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -356,13 +356,12 @@ void BIF_removeTransformOrientation(bContext *C, TransformOrientation *target) { Scene *scene = CTX_data_scene(C); ListBase *transform_spaces = &scene->transform_spaces; - TransformOrientation *ts; const int i = BLI_findindex(transform_spaces, target); if (i != -1) { Main *bmain = CTX_data_main(C); BKE_screen_view3d_main_twmode_remove(&bmain->screen, scene, i); - BLI_freelinkN(transform_spaces, ts); + BLI_freelinkN(transform_spaces, target); } } |