Cleanup: warnings
This commit is contained in:
parent
9195b5b3b1
commit
b14360507e
|
@ -424,7 +424,7 @@ enum {
|
|||
GP_LAYER_COPY_OBJECT_ACT_FRAME = 1
|
||||
};
|
||||
|
||||
bool gp_layer_duplicate_object_poll(bContext *C)
|
||||
static bool gp_layer_duplicate_object_poll(bContext *C)
|
||||
{
|
||||
ViewLayer *view_layer = CTX_data_view_layer(C);
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
|
|
|
@ -2024,7 +2024,6 @@ static bool gp_snap_poll(bContext *C)
|
|||
static int gp_snap_to_grid(bContext *C, wmOperator *UNUSED(op))
|
||||
{
|
||||
bGPdata *gpd = ED_gpencil_data_get_active(C);
|
||||
RegionView3D *rv3d = CTX_wm_region_data(C);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
Depsgraph *depsgraph = CTX_data_depsgraph(C);
|
||||
|
|
|
@ -79,7 +79,6 @@ static int snap_sel_to_grid_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
ViewLayer *view_layer_eval = DEG_get_evaluated_view_layer(depsgraph);
|
||||
Object *obedit = CTX_data_edit_object(C);
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
RegionView3D *rv3d = CTX_wm_region_data(C);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
TransVertStore tvs = {NULL};
|
||||
TransVert *tv;
|
||||
|
@ -494,7 +493,6 @@ void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot)
|
|||
static int snap_curs_to_grid_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
RegionView3D *rv3d = CTX_wm_region_data(C);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
float gridf, *curs;
|
||||
|
||||
|
|
Loading…
Reference in New Issue