Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_uv.c
| Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | static int gpencil_transform_fill_exec(bContext *C, wmOperator *op) | ||||
| } | } | ||||
| gpencil_uv_transform_exit(C, op); | gpencil_uv_transform_exit(C, op); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static bool gpencil_transform_fill_poll(bContext *C) | static bool gpencil_transform_fill_poll(bContext *C) | ||||
| { | { | ||||
| if (!ED_operator_view3d_active(C)) { | |||||
| return false; | |||||
| } | |||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| if ((ob == NULL) || (ob->type != OB_GPENCIL)) { | if ((ob == NULL) || (ob->type != OB_GPENCIL)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| bGPdata *gpd = (bGPdata *)ob->data; | bGPdata *gpd = (bGPdata *)ob->data; | ||||
| if (gpd == NULL) { | if (gpd == NULL) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines | |||||