[Bf-blender-cvs] [3c7bfb1] master: fix for error in own recent commit, removing orientations.
Campbell Barton
noreply at git.blender.org
Mon Nov 25 23:50:20 CET 2013
Commit: 3c7bfb1d7d3cbedddad864bdc50fe48033b56942
Author: Campbell Barton
Date: Tue Nov 26 09:49:32 2013 +1100
http://developer.blender.org/rB3c7bfb1d7d3cbedddad864bdc50fe48033b56942
fix for error in own recent commit, removing orientations.
===================================================================
M source/blender/editors/transform/transform_orientations.c
===================================================================
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index c8b6144..82c2d38 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);
}
}
More information about the Bf-blender-cvs
mailing list