Fix T100760: No color attribute initialization when created by brush
Caused by 25237d2625
.
This commit is contained in:
parent
f94130c94b
commit
2636f6fdee
Notes:
blender-bot
2023-02-14 09:29:42 +01:00
Referenced by issue #100760, Regression: Paint initialize glitch color attribute
|
@ -1926,7 +1926,7 @@ void BKE_sculpt_color_layer_create_if_needed(Object *object)
|
|||
return;
|
||||
}
|
||||
|
||||
CustomData_add_layer(&orig_me->vdata, CD_PROP_COLOR, CD_CONSTRUCT, nullptr, orig_me->totvert);
|
||||
CustomData_add_layer(&orig_me->vdata, CD_PROP_COLOR, CD_SET_DEFAULT, nullptr, orig_me->totvert);
|
||||
CustomDataLayer *layer = orig_me->vdata.layers +
|
||||
CustomData_get_layer_index(&orig_me->vdata, CD_PROP_COLOR);
|
||||
|
||||
|
|
Loading…
Reference in New Issue