From 61036ca179bdfa57c13a81178cabad6d17717386 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 18 Jan 2019 13:30:31 +1100 Subject: 3D View: Disable clipping on load Having clipping limit selection and tools is confusing when not visible. Disable on load until it's supported (doing this via ifdef's isn't practical). Fixes T59580 --- source/blender/blenloader/intern/readfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f8b8aa5bd21..79c8a360c3e 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6675,6 +6675,10 @@ static void direct_link_region(FileData *fd, ARegion *ar, int spacetype) rv3d->render_engine = NULL; rv3d->sms = NULL; rv3d->smooth_timer = NULL; + + /* TODO: support clipping in 2.8x, + * Tools use clipping which is confusing when it isn't displayed, T59580. */ + rv3d->rflag &= ~RV3D_CLIPPING; } } } -- cgit v1.2.3