GPencil: Refactor of Draw Engine, Vertex Paint and all internal functions
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
This commit is contained in:
		@@ -168,15 +168,12 @@ void BKE_gpencil_material_attr_init(Material *ma)
 | 
			
		||||
    /* set basic settings */
 | 
			
		||||
    gp_style->stroke_rgba[3] = 1.0f;
 | 
			
		||||
    gp_style->fill_rgba[3] = 1.0f;
 | 
			
		||||
    gp_style->pattern_gridsize = 0.1f;
 | 
			
		||||
    gp_style->gradient_radius = 0.5f;
 | 
			
		||||
    ARRAY_SET_ITEMS(gp_style->mix_rgba, 1.0f, 1.0f, 1.0f, 0.2f);
 | 
			
		||||
    ARRAY_SET_ITEMS(gp_style->gradient_scale, 1.0f, 1.0f);
 | 
			
		||||
    ARRAY_SET_ITEMS(gp_style->texture_scale, 1.0f, 1.0f);
 | 
			
		||||
    gp_style->texture_opacity = 1.0f;
 | 
			
		||||
    gp_style->texture_pixsize = 100.0f;
 | 
			
		||||
 | 
			
		||||
    gp_style->flag |= GP_STYLE_STROKE_SHOW;
 | 
			
		||||
    gp_style->flag |= GP_MATERIAL_STROKE_SHOW;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user