diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-05 18:24:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-05 18:25:05 +0300 |
commit | 44619eaa32ceaa796f32ad2cea2b3a6c2259461d (patch) | |
tree | b714de35875405cb46759e23685d6f2583a861da /source/blender | |
parent | 39a3d312c18b3ee7e6a41d9665d4692478d68602 (diff) |
Cleanup: make format
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/DRW_gpu_wrapper.hh | 3 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_ops.cc | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.cc | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index d9122657144..890cd588527 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -859,7 +859,8 @@ class TextureFromPool : public Texture, NonMovable { * Dummy type to bind texture as image. * It is just a GPUTexture in disguise. */ -class Image {}; +class Image { +}; static inline Image *as_image(GPUTexture *tex) { diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 106f4acd6b7..120c806c727 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -4169,7 +4169,6 @@ static int gpencil_stroke_outline_exec(bContext *C, wmOperator *op) } } - if (changed) { /* notifiers */ DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); diff --git a/source/blender/editors/space_node/node_ops.cc b/source/blender/editors/space_node/node_ops.cc index c936f07a594..3b3189983e2 100644 --- a/source/blender/editors/space_node/node_ops.cc +++ b/source/blender/editors/space_node/node_ops.cc @@ -111,7 +111,7 @@ void node_operatortypes() WM_operatortype_append(NODE_OT_cryptomatte_layer_remove); } -void node_keymap( wmKeyConfig *keyconf) +void node_keymap(wmKeyConfig *keyconf) { /* Entire Editor only ----------------- */ WM_keymap_ensure(keyconf, "Node Generic", SPACE_NODE, 0); diff --git a/source/blender/gpu/intern/gpu_codegen.cc b/source/blender/gpu/intern/gpu_codegen.cc index f774f33e03d..b81345683b4 100644 --- a/source/blender/gpu/intern/gpu_codegen.cc +++ b/source/blender/gpu/intern/gpu_codegen.cc @@ -199,7 +199,8 @@ static std::ostream &operator<<(std::ostream &stream, const GPUOutput *output) } /* Trick type to change overload and keep a somewhat nice syntax. */ -struct GPUConstant : public GPUInput {}; +struct GPUConstant : public GPUInput { +}; /* Print data constructor (i.e: vec2(1.0f, 1.0f)). */ static std::ostream &operator<<(std::ostream &stream, const GPUConstant *input) |