[Bf-blender-cvs] [a8a0c665503] temp-gpencil-fill: GPencil: Cleanup code
Antonio Vazquez
noreply at git.blender.org
Fri Jan 29 16:22:58 CET 2021
Commit: a8a0c66550397606fa8e80063830150d8212d04a
Author: Antonio Vazquez
Date: Fri Jan 29 16:22:54 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rBa8a0c66550397606fa8e80063830150d8212d04a
GPencil: Cleanup code
===================================================================
M source/blender/editors/gpencil/gpencil_fill.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index af1ff4bc5c1..f0c419c3b2e 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1821,14 +1821,13 @@ static int gpencil_fill_modal(bContext *C, wmOperator *op, const wmEvent *event)
GHash *frame_list = BLI_ghash_int_new_ex(__func__, 64);
BKE_gpencil_frame_selected_hash(tgpf->gpd, frame_list);
- /* Set active frame as current for filling. */
+ /* Loop all frames. */
int cfra_prv = CFRA;
- /* Loop all frames. */
GHashIterator gh_iter;
GHASH_ITER (gh_iter, frame_list) {
- int *cfra = BLI_ghashIterator_getKey(&gh_iter);
- tgpf->active_cfra = POINTER_AS_INT(cfra);
+ /* Set active frame as current for filling. */
+ tgpf->active_cfra = POINTER_AS_INT(BLI_ghashIterator_getKey(&gh_iter));
CFRA = tgpf->active_cfra;
/* Render screen to temp image and do fill. */
More information about the Bf-blender-cvs
mailing list