Commit: 8042cc961334a7b88af12f9b7a62a0a0403143e9
Author: Sebastian Parborg
Date: Fri Mar 12 17:07:37 2021 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rB8042cc961334a7b88af12f9b7a62a0a0403143e9
Fix else after return and NULL pointer value assignment
===================================================================
M source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
b/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
index bc49bddd26d..145ed9fce92 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_ops.c
@@ -291,15 +291,15 @@ static int lineart_gpencil_bake_common(bContext *C,
return OPERATOR_RUNNING_MODAL;
}
- else {
- float pseduo_progress;
- lineart_gpencil_bake_startjob(bj, NULL, NULL, &pseduo_progress);
- BLI_linklist_free(bj->objects, NULL);
- MEM_freeN(bj);
+ float pseduo_progress;
+ short pseduo_do_update;
+ lineart_gpencil_bake_startjob(bj, NULL, &pseduo_do_update, &pseduo_progress);
- return OPERATOR_FINISHED;
- }
+ BLI_linklist_free(bj->objects, NULL);
+ MEM_freeN(bj);
+
+ return OPERATOR_FINISHED;
}
static int lineart_gpencil_bake_strokes_all_invoke(bContext *C,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs