[Bf-blender-cvs] [ed5c95f2cd4] greasepencil-object: Cleanup: Remove "colorname" from GPStroke.new()
Joshua Leung
noreply at git.blender.org
Tue May 8 19:36:15 CEST 2018
Commit: ed5c95f2cd419922d2c00149a5d65e4636bdbd16
Author: Joshua Leung
Date: Tue May 8 19:36:10 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBed5c95f2cd419922d2c00149a5d65e4636bdbd16
Cleanup: Remove "colorname" from GPStroke.new()
This isn't used now, so remove it to silence the compiler warnings here
===================================================================
M source/blender/makesrna/intern/rna_gpencil.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 89c7ef76a2c..7576b660e94 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -456,10 +456,9 @@ static void rna_GPencil_stroke_point_pop(bGPDstroke *stroke, ReportList *reports
WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL);
}
-static bGPDstroke *rna_GPencil_stroke_new(bGPDframe *frame, const char *colorname)
+static bGPDstroke *rna_GPencil_stroke_new(bGPDframe *frame)
{
bGPDstroke *stroke = MEM_callocN(sizeof(bGPDstroke), "gp_stroke");
- /* XXX: colorname is unused */
stroke->flag |= GP_STROKE_RECALC_COLOR;
BLI_addtail(&frame->strokes, stroke);
@@ -871,7 +870,6 @@ static void rna_def_gpencil_strokes_api(BlenderRNA *brna, PropertyRNA *cprop)
func = RNA_def_function(srna, "new", "rna_GPencil_stroke_new");
RNA_def_function_ui_description(func, "Add a new grease pencil stroke");
- parm = RNA_def_string(func, "colorname", 0, MAX_NAME, "Color", "Name of the color");
parm = RNA_def_pointer(func, "stroke", "GPencilStroke", "", "The newly created stroke");
RNA_def_function_return(func, parm);
More information about the Bf-blender-cvs
mailing list