Fix remesher operator poll function

This commit also removes the name "voxel" from the messages because this function
is now used for the voxel remesher and quadriflow.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D5842
This commit is contained in:
Pablo Dobarro 2019-09-18 16:55:08 +02:00
parent 67310ed976
commit 85acd72c9b
1 changed files with 3 additions and 2 deletions

View File

@ -78,12 +78,13 @@ static bool object_remesh_poll(bContext *C)
}
if (BKE_object_is_in_editmode(ob)) {
CTX_wm_operator_poll_msg_set(C, "The voxel remesher cannot run from edit mode.");
CTX_wm_operator_poll_msg_set(C, "The remesher cannot run from edit mode.");
return false;
}
if (ob->mode == OB_MODE_SCULPT && ob->sculpt->bm) {
CTX_wm_operator_poll_msg_set(C, "The voxel remesher cannot run with dyntopo activated.");
CTX_wm_operator_poll_msg_set(C, "The remesher cannot run with dyntopo activated.");
return false;
}
return ED_operator_object_active_editable_mesh(C);