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-11-23 07:45:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-23 09:40:49 +0300
commit6e4cb463c44ab57331cda7ded645b4faa573bbb3 (patch)
tree8da615bcb135c1f52872a9a9b34a888a0ccf064f /source/blender/makesrna/intern/rna_color.c
parentdaa90de3fdb5b9971b713c13a67b9c0a0990b3d7 (diff)
Cleanup: shadowing (rna, modifiers, *misc*)
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r--source/blender/makesrna/intern/rna_color.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index bb18871afcd..c418ef3ceb6 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -195,9 +195,8 @@ static char *rna_ColorRamp_path(PointerRNA *ptr)
case ID_LS:
{
- char *path = BKE_linestyle_path_to_color_ramp((FreestyleLineStyle *)id, (ColorBand *)ptr->data);
- if (path)
- return path;
+ /* may be NULL */
+ path = BKE_linestyle_path_to_color_ramp((FreestyleLineStyle *)id, (ColorBand *)ptr->data);
break;
}