diff --git a/scripts/startup/bl_ui/properties_object.py b/scripts/startup/bl_ui/properties_object.py index 0e3be9551bf..1f7fb798e4a 100644 --- a/scripts/startup/bl_ui/properties_object.py +++ b/scripts/startup/bl_ui/properties_object.py @@ -310,7 +310,7 @@ class OBJECT_PT_lineart(ObjectButtonsPanel, Panel): @classmethod def poll(cls, context): ob = context.object - return (ob.type in {'MESH', 'FONT', 'CURVE', 'SURFACE'}) + return (ob.type in {'MESH', 'FONT', 'CURVE', 'SURFACE', 'CURVES'}) def draw(self, context): layout = self.layout diff --git a/source/blender/modifiers/intern/MOD_lineart.cc b/source/blender/modifiers/intern/MOD_lineart.cc index ffcd1eee438..8cd81f044db 100644 --- a/source/blender/modifiers/intern/MOD_lineart.cc +++ b/source/blender/modifiers/intern/MOD_lineart.cc @@ -141,7 +141,7 @@ static void add_this_collection(Collection &collection, default_add = false; } FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN (&collection, ob, mode) { - if (ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVES_LEGACY, OB_SURF, OB_FONT)) { + if (ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVES_LEGACY, OB_SURF, OB_FONT, OB_CURVES)) { if ((ob->lineart.usage == OBJECT_LRT_INHERIT && default_add) || ob->lineart.usage != OBJECT_LRT_EXCLUDE) { diff --git a/source/blender/modifiers/intern/lineart/lineart_cpu.cc b/source/blender/modifiers/intern/lineart/lineart_cpu.cc index a68d509c08a..cce5b6f7c59 100644 --- a/source/blender/modifiers/intern/lineart/lineart_cpu.cc +++ b/source/blender/modifiers/intern/lineart/lineart_cpu.cc @@ -2472,7 +2472,7 @@ static void lineart_object_load_single_instance(LineartData *ld, mul_m4db_m4db_m4fl(obi->model_view_proj, ld->conf.view_projection, use_mat); mul_m4db_m4db_m4fl(obi->model_view, ld->conf.view, use_mat); - if (!ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVES_LEGACY, OB_SURF, OB_FONT)) { + if (!ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVES_LEGACY, OB_SURF, OB_FONT, OB_CURVES)) { return; } if (ob->type == OB_MESH) { @@ -2604,7 +2604,7 @@ void lineart_main_load_geometries(Depsgraph *depsgraph, /* DEG_OBJECT_ITER_BEGIN will include the instanced mesh of these curve object types, so don't * load them twice. */ - if (allow_duplicates && ELEM(ob->type, OB_CURVES_LEGACY, OB_FONT, OB_SURF)) { + if (allow_duplicates && ELEM(ob->type, OB_CURVES_LEGACY, OB_FONT, OB_SURF, OB_CURVES)) { continue; }