Cleanup: style
This commit is contained in:
@@ -22,9 +22,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
struct Depsgraph;
|
struct Depsgraph;
|
||||||
struct DynamicPaintRuntime;
|
|
||||||
struct DynamicPaintCanvasSettings;
|
struct DynamicPaintCanvasSettings;
|
||||||
struct DynamicPaintModifierData;
|
struct DynamicPaintModifierData;
|
||||||
|
struct DynamicPaintRuntime;
|
||||||
struct Main;
|
struct Main;
|
||||||
struct Scene;
|
struct Scene;
|
||||||
struct ViewLayer;
|
struct ViewLayer;
|
||||||
|
@@ -50,13 +50,13 @@ struct Scene;
|
|||||||
struct Sculpt;
|
struct Sculpt;
|
||||||
struct StrokeCache;
|
struct StrokeCache;
|
||||||
struct SubdivCCG;
|
struct SubdivCCG;
|
||||||
|
struct SubdivCCG;
|
||||||
struct Tex;
|
struct Tex;
|
||||||
struct ToolSettings;
|
struct ToolSettings;
|
||||||
struct UnifiedPaintSettings;
|
struct UnifiedPaintSettings;
|
||||||
struct ViewLayer;
|
struct ViewLayer;
|
||||||
struct bContext;
|
struct bContext;
|
||||||
struct bToolRef;
|
struct bToolRef;
|
||||||
struct SubdivCCG;
|
|
||||||
|
|
||||||
enum eOverlayFlags;
|
enum eOverlayFlags;
|
||||||
|
|
||||||
|
@@ -2619,8 +2619,7 @@ static void lib_link_brush(FileData *fd, Main *main)
|
|||||||
/* link default grease pencil palette */
|
/* link default grease pencil palette */
|
||||||
if (brush->gpencil_settings != NULL)
|
if (brush->gpencil_settings != NULL)
|
||||||
{
|
{
|
||||||
if (brush->gpencil_settings->flag & GP_BRUSH_MATERIAL_PINNED)
|
if (brush->gpencil_settings->flag & GP_BRUSH_MATERIAL_PINNED) {
|
||||||
{
|
|
||||||
brush->gpencil_settings->material = newlibadr_us(fd, brush->id.lib, brush->gpencil_settings->material);
|
brush->gpencil_settings->material = newlibadr_us(fd, brush->id.lib, brush->gpencil_settings->material);
|
||||||
|
|
||||||
if (!brush->gpencil_settings->material) {
|
if (!brush->gpencil_settings->material) {
|
||||||
|
@@ -140,7 +140,7 @@ static void gp_init_colors(tGPDprimitive *p)
|
|||||||
MaterialGPencilStyle *gp_style = NULL;
|
MaterialGPencilStyle *gp_style = NULL;
|
||||||
|
|
||||||
/* use brush material */
|
/* use brush material */
|
||||||
p->mat = BKE_gpencil_current_input_brush_material(p->bmain,p->ob, brush);
|
p->mat = BKE_gpencil_current_input_brush_material(p->bmain, p->ob, brush);
|
||||||
|
|
||||||
/* assign color information to temp data */
|
/* assign color information to temp data */
|
||||||
gp_style = p->mat->gp_style;
|
gp_style = p->mat->gp_style;
|
||||||
|
Reference in New Issue
Block a user