Curves: Add disabled message for add empty hair operator

Ref 2ba081f59b
This commit is contained in:
Hans Goudey 2022-05-10 09:40:40 +02:00
parent 08a39d32a9
commit 2a2e47b20c
1 changed files with 1 additions and 0 deletions

View File

@ -2126,6 +2126,7 @@ static bool object_curves_empty_hair_add_poll(bContext *C)
}
Object *ob = CTX_data_active_object(C);
if (ob == nullptr || ob->type != OB_MESH) {
CTX_wm_operator_poll_msg_set(C, "No active mesh object");
return false;
}
return true;