Cleanup: format

This commit is contained in:
Campbell Barton
2023-08-25 09:39:26 +10:00
parent 3de8900ed6
commit 7074c210cc
11 changed files with 24 additions and 26 deletions
@@ -1812,7 +1812,7 @@ def km_graph_editor_generic(params):
),
("graph.extrapolation_type", {"type": 'E', "value": 'PRESS', "shift": True}, None),
("graph.fmodifier_add", {"type": 'M', "value": 'PRESS', "shift": True, "ctrl": True},
{"properties": [("only_active", False)]}),
{"properties": [("only_active", False)]}),
("anim.channels_select_filter", {"type": 'F', "value": 'PRESS', "ctrl": True}, None),
*_template_items_hide_reveal_actions("graph.hide", "graph.reveal"),
("wm.context_set_enum", {"type": 'TAB', "value": 'PRESS', "ctrl": True},
+3 -2
View File
@@ -391,8 +391,9 @@ void BKE_pose_blend_write(struct BlendWriter *writer, struct bPose *pose, struct
void BKE_pose_blend_read_data(struct BlendDataReader *reader,
struct ID *id_owner,
struct bPose *pose) ATTR_NONNULL(1, 2);
void BKE_pose_blend_read_after_liblink(struct BlendLibReader *reader, struct Object *ob, struct bPose *pose)
ATTR_NONNULL(1, 2);
void BKE_pose_blend_read_after_liblink(struct BlendLibReader *reader,
struct Object *ob,
struct bPose *pose) ATTR_NONNULL(1, 2);
/* `action_mirror.cc` */
+2 -2
View File
@@ -273,8 +273,8 @@ void BKE_view_layer_blend_write(struct BlendWriter *writer,
struct ViewLayer *view_layer);
void BKE_view_layer_blend_read_data(struct BlendDataReader *reader, struct ViewLayer *view_layer);
void BKE_view_layer_blend_read_after_liblink(struct BlendLibReader *reader,
struct ID *self_id,
struct ViewLayer *view_layer);
struct ID *self_id,
struct ViewLayer *view_layer);
/* iterators */
+3 -3
View File
@@ -702,9 +702,9 @@ void BKE_particle_system_blend_write(struct BlendWriter *writer, struct ListBase
void BKE_particle_system_blend_read_data(struct BlendDataReader *reader,
struct ListBase *particles);
void BKE_particle_system_blend_read_after_liblink(struct BlendLibReader *reader,
struct Object *ob,
struct ID *id,
struct ListBase *particles);
struct Object *ob,
struct ID *id,
struct ListBase *particles);
#ifdef __cplusplus
}
+2 -2
View File
@@ -2435,8 +2435,8 @@ void BKE_view_layer_blend_read_data(BlendDataReader *reader, ViewLayer *view_lay
}
void BKE_view_layer_blend_read_after_liblink(BlendLibReader * /*reader*/,
ID * /*self_id*/,
ViewLayer *view_layer)
ID * /*self_id*/,
ViewLayer *view_layer)
{
LISTBASE_FOREACH_MUTABLE (Base *, base, &view_layer->object_bases) {
if (base->object == nullptr) {
+3 -3
View File
@@ -5429,9 +5429,9 @@ void BKE_particle_system_blend_read_data(BlendDataReader *reader, ListBase *part
}
void BKE_particle_system_blend_read_after_liblink(BlendLibReader * /*reader*/,
Object *ob,
ID * /*id*/,
ListBase *particles)
Object *ob,
ID * /*id*/,
ListBase *particles)
{
LISTBASE_FOREACH_MUTABLE (ParticleSystem *, psys, particles) {
if (psys->part) {
@@ -946,8 +946,8 @@ static void buttons_space_blend_read_data(BlendDataReader * /*reader*/, SpaceLin
}
static void buttons_space_blend_read_after_liblink(BlendLibReader * /*reader*/,
ID * /*parent_id*/,
SpaceLink *sl)
ID * /*parent_id*/,
SpaceLink *sl)
{
SpaceProperties *sbuts = reinterpret_cast<SpaceProperties *>(sl);
@@ -884,8 +884,8 @@ static void file_space_blend_read_data(BlendDataReader *reader, SpaceLink *sl)
}
static void file_space_blend_read_after_liblink(BlendLibReader * /*reader*/,
ID * /*parent_id*/,
SpaceLink *sl)
ID * /*parent_id*/,
SpaceLink *sl)
{
SpaceFile *sfile = reinterpret_cast<SpaceFile *>(sl);
@@ -377,11 +377,8 @@ void NODE_OT_add_group(wmOperatorType *ot)
WM_operator_properties_id_lookup(ot, true);
PropertyRNA *prop = RNA_def_boolean(ot->srna,
"show_datablock_in_node",
true,
"Show the datablock selector in the node",
"");
PropertyRNA *prop = RNA_def_boolean(
ot->srna, "show_datablock_in_node", true, "Show the datablock selector in the node", "");
RNA_def_property_flag(prop, (PropertyFlag)(PROP_SKIP_SAVE | PROP_HIDDEN));
}
@@ -514,8 +514,8 @@ static void outliner_space_blend_read_data(BlendDataReader *reader, SpaceLink *s
}
static void outliner_space_blend_read_after_liblink(BlendLibReader * /*reader*/,
ID * /*parent_id*/,
SpaceLink *sl)
ID * /*parent_id*/,
SpaceLink *sl)
{
SpaceOutliner *space_outliner = reinterpret_cast<SpaceOutliner *>(sl);
@@ -155,8 +155,8 @@ static void script_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
}
static void script_space_blend_read_after_liblink(BlendLibReader * /*reader*/,
ID * /*parent_id*/,
SpaceLink *sl)
ID * /*parent_id*/,
SpaceLink *sl)
{
SpaceScript *scpt = reinterpret_cast<SpaceScript *>(sl);