Commit: 118f7e28f31cfedf4f44d0f12b127c2385d1b371
Author: Antonio Vazquez
Date:   Tue Mar 13 15:45:21 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB118f7e28f31cfedf4f44d0f12b127c2385d1b371

Increase User number for palettes

===================================================================

M       source/blender/blenkernel/intern/gpencil.c

===================================================================

diff --git a/source/blender/blenkernel/intern/gpencil.c 
b/source/blender/blenkernel/intern/gpencil.c
index 723922b13d8..66d85ccb06a 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1302,6 +1302,7 @@ PaletteColor *BKE_gpencil_get_color_from_brush(bGPdata 
*gpd, Brush *brush, bool
                        }
                        palslot = BKE_gpencil_paletteslot_add(gpd, NULL);
                        palslot->palette = brush->palette;
+                       id_us_plus((ID *)brush->palette);
                }
 
                palcolor = BKE_palette_color_getbyname(brush->palette, 
brush->colorname);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to