GPencil: Remove unused variable and fix memory leak
This was missing in previous commit
This commit is contained in:
parent
c77bf95221
commit
1260baf16b
|
@ -584,8 +584,6 @@ static int gpencil_stroke_merge_material_exec(bContext *C, wmOperator *op)
|
|||
const float val_threshold = RNA_float_get(op->ptr, "val_threshold");
|
||||
|
||||
/* Review materials. */
|
||||
GHash *mat_table = BLI_ghash_int_new(__func__);
|
||||
|
||||
short *totcol = BKE_object_material_len_p(ob);
|
||||
if (totcol == 0) {
|
||||
return OPERATOR_CANCELLED;
|
||||
|
|
Loading…
Reference in New Issue