Cleanup: format
This commit is contained in:
parent
a9918e9c0e
commit
5c51bf2ffe
|
@ -2072,7 +2072,8 @@ static bool gpencil_generic_stroke_select(bContext *C,
|
|||
bGPDspoint *pt_active = (pt->runtime.pt_orig) ? pt->runtime.pt_orig : pt;
|
||||
|
||||
/* Convert point coords to screen-space. */
|
||||
const bool is_inside = is_inside_fn(gsc.region, gpstroke_iter.diff_mat, &pt_active->x, user_data);
|
||||
const bool is_inside = is_inside_fn(
|
||||
gsc.region, gpstroke_iter.diff_mat, &pt_active->x, user_data);
|
||||
if (strokemode == false) {
|
||||
const bool is_select = (pt_active->flag & GP_SPOINT_SELECT) != 0;
|
||||
const int sel_op_result = ED_select_op_action_deselected(sel_op, is_select, is_inside);
|
||||
|
|
|
@ -598,7 +598,7 @@ std::string AssetCatalogTreeViewAllItem::DropController::drop_tooltip(const wmDr
|
|||
TIP_("to the top level of the tree");
|
||||
}
|
||||
|
||||
bool AssetCatalogTreeViewAllItem::DropController::on_drop(struct bContext */*C*/,
|
||||
bool AssetCatalogTreeViewAllItem::DropController::on_drop(struct bContext * /*C*/,
|
||||
const wmDrag &drag)
|
||||
{
|
||||
BLI_assert(drag.type == WM_DRAG_ASSET_CATALOG);
|
||||
|
|
|
@ -93,7 +93,7 @@ static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
|||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree */*tree*/, bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveArc *data = MEM_cnew<NodeGeometryCurvePrimitiveArc>(__func__);
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
|||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree */*tree*/, bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveLine *data = MEM_cnew<NodeGeometryCurvePrimitiveLine>(__func__);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class InstanceRotationFieldInput final : public bke::InstancesFieldInput {
|
|||
}
|
||||
|
||||
GVArray get_varray_for_context(const InstancesComponent &instances,
|
||||
const IndexMask /*mask*/) const final
|
||||
const IndexMask /*mask*/) const final
|
||||
{
|
||||
auto rotation_fn = [&](const int i) -> float3 {
|
||||
return instances.instance_transforms()[i].to_euler();
|
||||
|
|
|
@ -471,7 +471,7 @@ void wm_drop_prepare(bContext *C, wmDrag *drag, wmDropBox *drop)
|
|||
wm_drags_exit(CTX_wm_manager(C), CTX_wm_window(C));
|
||||
}
|
||||
|
||||
void wm_drop_end(bContext *C, wmDrag */*drag*/, wmDropBox */*drop*/)
|
||||
void wm_drop_end(bContext *C, wmDrag * /*drag*/, wmDropBox * /*drop*/)
|
||||
{
|
||||
CTX_store_set(C, nullptr);
|
||||
}
|
||||
|
@ -496,7 +496,7 @@ void wm_drags_check_ops(bContext *C, const wmEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
wmOperatorCallContext wm_drop_operator_context_get(const wmDropBox */*drop*/)
|
||||
wmOperatorCallContext wm_drop_operator_context_get(const wmDropBox * /*drop*/)
|
||||
{
|
||||
return WM_OP_INVOKE_DEFAULT;
|
||||
}
|
||||
|
@ -818,10 +818,7 @@ static int wm_drag_imbuf_icon_height_get(const wmDrag *drag)
|
|||
return round_fl_to_int(drag->imb->y * drag->imbuf_scale);
|
||||
}
|
||||
|
||||
static void wm_drag_draw_icon(bContext * /*C*/,
|
||||
wmWindow */*win*/,
|
||||
wmDrag *drag,
|
||||
const int xy[2])
|
||||
static void wm_drag_draw_icon(bContext * /*C*/, wmWindow * /*win*/, wmDrag *drag, const int xy[2])
|
||||
{
|
||||
int x, y;
|
||||
|
||||
|
@ -867,10 +864,7 @@ static void wm_drag_draw_item_name(wmDrag *drag, const int x, const int y)
|
|||
UI_fontstyle_draw_simple(fstyle, x, y, WM_drag_get_item_name(drag), text_col);
|
||||
}
|
||||
|
||||
void WM_drag_draw_item_name_fn(bContext * /*C*/,
|
||||
wmWindow */*win*/,
|
||||
wmDrag *drag,
|
||||
const int xy[2])
|
||||
void WM_drag_draw_item_name_fn(bContext * /*C*/, wmWindow * /*win*/, wmDrag *drag, const int xy[2])
|
||||
{
|
||||
int x = xy[0] + 10 * UI_DPI_FAC;
|
||||
int y = xy[1] + 1 * UI_DPI_FAC;
|
||||
|
|
Loading…
Reference in New Issue