58 const float default_stroke_color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
59 const float default_fill_color[4] = {0.5f, 0.5f, 0.5f, 1.0f};
62 if (mat_index == -1) {
struct Material * BKE_gpencil_object_material_new(struct Main *bmain, struct Object *ob, const char *name, int *r_index)
int BKE_gpencil_material_find_index_by_name_prefix(struct Object *ob, const char *name_prefix)
General operations, lookup, etc. for materials.
MINLINE void copy_v4_v4(float r[4], const float a[4])
@ GP_MATERIAL_STROKE_SHOW
Object is a sort of wrapper for general info.
GpencilImporter(const struct GpencilIOParams *iparams)
struct Object * create_object()
int32_t create_material(const char *name, const bool stroke, const bool fill)
Object * ED_gpencil_add_object(bContext *C, const float loc[3], ushort local_view_bits)
struct MaterialGPencilStyle * gp_style
unsigned short local_view_uuid