Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-11 00:53:37 +0300
committerHans Goudey <h.goudey@me.com>2022-02-11 00:53:37 +0300
commit2cc47474434aaf7756ef5cfc7fcd099e179c0fd3 (patch)
tree734dd1f0465b74114d801cb15fcd8ef8986e29ae /source/blender/blenkernel/intern/gpencil.c
parent40e8b9775d34301595f18d9bf0b35e3ada545a1d (diff)
Cleanup: Clang tidy
Mismatched parameter names and else after return.
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 6e39125b252..cb18c28b3dc 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -2879,7 +2879,7 @@ static bool gpencil_update_on_write_layer_cb(GPencilUpdateCache *gpl_cache, void
td->gpl_eval->runtime.gpl_orig = gpl;
return true;
}
- else if (gpl_cache->flag == GP_UPDATE_NODE_LIGHT_COPY) {
+ if (gpl_cache->flag == GP_UPDATE_NODE_LIGHT_COPY) {
BLI_assert(gpl != NULL);
BKE_gpencil_layer_copy_settings(gpl, td->gpl_eval);
td->gpl_eval->runtime.gpl_orig = gpl;
@@ -2919,7 +2919,7 @@ static bool gpencil_update_on_write_frame_cb(GPencilUpdateCache *gpf_cache, void
return true;
}
- else if (gpf_cache->flag == GP_UPDATE_NODE_LIGHT_COPY) {
+ if (gpf_cache->flag == GP_UPDATE_NODE_LIGHT_COPY) {
BLI_assert(gpf != NULL);
BKE_gpencil_frame_copy_settings(gpf, td->gpf_eval);
td->gpf_eval->runtime.gpf_orig = gpf;