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:
authorCampbell Barton <ideasman42@gmail.com>2015-03-18 07:09:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-18 08:10:43 +0300
commit29195197147a882849859ea963cae42484dfeaba (patch)
treeb45cf4a573fda9a1ff45c1eb2dd158cb5e15e1ff /source/blender/editors/sculpt_paint/paint_utils.c
parenta975a3ca63d155e9ee1f0ba96fd451c330885aaa (diff)
RNA: palette colors api
Methods so Python can manage colors. palette.colors.new()/remove()/clear()/active
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c
index c0ed5005397..b19cced2f8e 100644
--- a/source/blender/editors/sculpt_paint/paint_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_utils.c
@@ -439,6 +439,7 @@ void paint_sample_color(bContext *C, ARegion *ar, int x, int y, bool texpaint_pr
}
color = BKE_palette_color_add(palette);
+ palette->active_color = BLI_listbase_count(&palette->colors) - 1;
}