diff --git a/source/blender/modifiers/intern/MOD_subsurf.cc b/source/blender/modifiers/intern/MOD_subsurf.cc index d33e75ad856..15a9aed79e2 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.cc +++ b/source/blender/modifiers/intern/MOD_subsurf.cc @@ -393,8 +393,9 @@ static void panel_draw(const bContext *C, Panel *panel) Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); SubsurfModifierData *smd = static_cast(ptr->data); Object *ob = static_cast(ob_ptr.data); - const Mesh *mesh = static_cast(ob->data); - if (BKE_subsurf_modifier_force_disable_gpu_evaluation_for_mesh(smd, mesh)) { + if (ob->type == OB_MESH && BKE_subsurf_modifier_force_disable_gpu_evaluation_for_mesh( + smd, static_cast(ob->data))) + { uiItemL(layout, RPT_("Sharp edges or custom normals detected, disabling GPU subdivision"), ICON_INFO);