32 const float rot[3] = {0.0f};
53 const float default_stroke_color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
54 const float default_fill_color[4] = {0.5f, 0.5f, 0.5f, 1.0f};
57 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.
struct Object * ED_object_add_type(struct bContext *C, int type, const char *name, const float loc[3], const float rot[3], bool enter_editmode, unsigned short local_view_bits) ATTR_NONNULL(1) ATTR_RETURNS_NONNULL
GpencilImporter(const struct GpencilIOParams *iparams)
struct Object * create_object()
int32_t create_material(const char *name, bool stroke, bool fill)
void ED_gpencil_add_defaults(bContext *C, Object *ob)
struct MaterialGPencilStyle * gp_style
unsigned short local_view_uuid