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:
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c3
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 5be23594afd..a21882fc206 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -68,11 +68,10 @@ void BIF_clearTransformOrientation(bContext *C)
{
Scene *scene = CTX_data_scene(C);
ListBase *transform_orientations = &scene->transform_spaces;
- View3D *v3d = CTX_wm_view3d(C);
BLI_freelistN(transform_orientations);
- if (v3d && scene->orientation_type == V3D_MANIP_CUSTOM) {
+ if (scene->orientation_type == V3D_MANIP_CUSTOM) {
scene->orientation_type = V3D_MANIP_GLOBAL; /* fallback to global */
scene->orientation_index_custom = -1;
}