Cleanup: remove unused function
This commit is contained in:
@@ -345,18 +345,6 @@ static bool gpencil_paintmode_toggle_poll(bContext *C)
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool gpencil_paint_poll_view3d(bContext *C)
|
||||
{
|
||||
const Object *ob = CTX_data_active_object(C);
|
||||
if (ob == nullptr || (ob->mode & OB_MODE_PAINT_GPENCIL_LEGACY) == 0) {
|
||||
return false;
|
||||
}
|
||||
if (CTX_wm_region_view3d(C) == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static int gpencil_paintmode_toggle_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
const bool back = RNA_boolean_get(op->ptr, "back");
|
||||
|
||||
Reference in New Issue
Block a user