Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,095 Lines • ▼ Show 20 Lines | else if ((GpWeightPaint **)r_paint == &ts->gp_weightpaint) { | ||||
| paint = &data->paint; | paint = &data->paint; | ||||
| } | } | ||||
| else if ((UvSculpt **)r_paint == &ts->uvsculpt) { | else if ((UvSculpt **)r_paint == &ts->uvsculpt) { | ||||
| UvSculpt *data = MEM_callocN(sizeof(*data), __func__); | UvSculpt *data = MEM_callocN(sizeof(*data), __func__); | ||||
| paint = &data->paint; | paint = &data->paint; | ||||
| } | } | ||||
| else if ((CurvesSculpt **)r_paint == &ts->curves_sculpt) { | else if ((CurvesSculpt **)r_paint == &ts->curves_sculpt) { | ||||
| CurvesSculpt *data = MEM_callocN(sizeof(*data), __func__); | CurvesSculpt *data = MEM_callocN(sizeof(*data), __func__); | ||||
| data->curve_length = 0.3f; | |||||
| paint = &data->paint; | paint = &data->paint; | ||||
| } | } | ||||
| else if (*r_paint == &ts->imapaint.paint) { | else if (*r_paint == &ts->imapaint.paint) { | ||||
| paint = &ts->imapaint.paint; | paint = &ts->imapaint.paint; | ||||
| } | } | ||||
| paint->flags |= PAINT_SHOW_BRUSH; | paint->flags |= PAINT_SHOW_BRUSH; | ||||
| ▲ Show 20 Lines • Show All 1,204 Lines • Show Last 20 Lines | |||||