Cleanup: format

This commit is contained in:
Chris Blackbourn
2023-05-17 10:40:23 +12:00
parent 354ef89d20
commit c8b5b17d40
5 changed files with 5 additions and 10 deletions

View File

@@ -39,7 +39,6 @@ bNodeTree *ntreeCopyTree(Main *bmain, const bNodeTree *ntree);
void ntreeFreeLocalNode(bNodeTree *ntree, bNode *node);
void ntreeUpdateAllNew(Main *main);
void ntreeNodeFlagSet(const bNodeTree *ntree, int flag, bool enable);

View File

@@ -1387,7 +1387,7 @@ void BKE_sound_set_scene_sound_pitch(void *UNUSED(handle),
void BKE_sound_set_scene_sound_pitch_at_frame(void *UNUSED(handle),
int UNUSED(frame),
float UNUSED(pitch),
char(animated));
char UNUSED(animated))
{
}
void BKE_sound_set_scene_sound_pitch_constant_range(void *UNUSED(handle),

View File

@@ -421,8 +421,7 @@ static bool view3d_ruler_item_mousemove(const bContext *C,
#ifdef USE_AXIS_CONSTRAINTS
if (!(ruler_item->flag & RULERITEM_USE_ANGLE) &&
ruler_info->constrain_mode != CONSTRAIN_MODE_OFF)
{
ruler_info->constrain_mode != CONSTRAIN_MODE_OFF) {
Scene *scene = DEG_get_input_scene(depsgraph);
ViewLayer *view_layer = DEG_get_input_view_layer(depsgraph);
@@ -1386,8 +1385,7 @@ static int view3d_ruler_remove_invoke(bContext *C, wmOperator *op, const wmEvent
if (ruler_info->item_active) {
RulerItem *ruler_item = ruler_info->item_active;
if ((ruler_item->flag & RULERITEM_USE_ANGLE) &&
(ruler_item->flag & RULERITEM_USE_ANGLE_ACTIVE))
{
(ruler_item->flag & RULERITEM_USE_ANGLE_ACTIVE)) {
ruler_item->flag &= ~(RULERITEM_USE_ANGLE | RULERITEM_USE_ANGLE_ACTIVE);
}
else {

View File

@@ -170,8 +170,7 @@ static void add_instances_from_component(
const eCustomDataType type = bke::cpp_type_to_custom_data_type(src.varray.type());
if (src.varray.size() == dst_component.instances_num() && src.sharing_info &&
src.varray.is_span())
{
src.varray.is_span()) {
const bke::AttributeInitShared init(src.varray.get_internal_span().data(),
*src.sharing_info);
dst_attributes.add(id, ATTR_DOMAIN_INSTANCE, type, init);

View File

@@ -225,8 +225,7 @@ static void node_mix_gather_link_searches(GatherLinkSearchOpParams &params)
}
const std::string socket_name = params.in_out() == SOCK_IN ? "A" : "Result";
for (const EnumPropertyItem *item = rna_enum_ramp_blend_items; item->identifier != nullptr;
item++)
{
item++) {
if (item->name != nullptr && item->identifier[0] != '\0') {
params.add_item(CTX_IFACE_(BLT_I18NCONTEXT_ID_NODETREE, item->name),
SocketSearchOp{socket_name, item->value},