From 6368343da9a0aed8511de37b91161ea47418909d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 18 Jan 2020 17:25:59 +0100 Subject: Fix T73129: sculpt mode slow on mesh with fake user We can't use the fast path when the mesh is used by mulitple objects and so slower sculpting is expected then. But fake users should not affect this. This also fixes the same type of error in a few other areas. --- source/blender/editors/object/object_add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/object/object_add.c') diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 5286637afe2..24c1c53c25e 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -2344,7 +2344,7 @@ static int convert_exec(bContext *C, wmOperator *op) if (!keep_original) { /* other users */ - if (cu->id.us > 1) { + if (BKE_id_num_real_users(&cu->id) > 1) { for (ob1 = bmain->objects.first; ob1; ob1 = ob1->id.next) { if (ob1->data == ob->data) { ob1->type = OB_CURVE; -- cgit v1.2.3