From a8f7d41d3898a8d3ae8afb4f95ea9f4f44db2a69 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 8 Jul 2022 12:07:08 +0200 Subject: Draw: Curve outline drawing in object mode. This patch adds (selected/active) outline around a curve object in object mode. {F13270680} In the past the draw bounds option was enabled for any curve objects. With this patch it isn't needed and will be disabled. In the future the curve outline could also be enabled to improve GPU selection. Reviewed By: dfelinto, HooglyBoogly, fclem Maniphest Tasks: T95933 Differential Revision: https://developer.blender.org/D15308 --- source/blender/blenloader/intern/versioning_300.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index 34b32ebc175..14204479849 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -3276,5 +3276,13 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } brush->curves_sculpt_settings->density_add_attempts = 100; } + + /* Disable 'show_bounds' option of curve objects. Option was set as there was no object mode + * outline implementation. See T95933. */ + LISTBASE_FOREACH (Object *, ob, &bmain->objects) { + if (ob->type == OB_CURVES) { + ob->dtx &= ~OB_DRAWBOUNDOX; + } + } } } -- cgit v1.2.3