Curves: Add disabled message for add empty hair operator
Ref 2ba081f59b
This commit is contained in:
parent
08a39d32a9
commit
2a2e47b20c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue