realize-depth #5

Merged
Arye Ramaty merged 43 commits from David-Haver/blender:realize-depth into WIP-realize-depth 2024-03-31 17:22:49 +02:00
Showing only changes of commit aa9bfc1b2a - Show all commits

View File

@ -441,8 +441,12 @@ bool BuiltinCustomDataLayerProvider::try_create(void *owner,
if (add_custom_data_layer_from_attribute_init( if (add_custom_data_layer_from_attribute_init(
name_, *custom_data, data_type_, element_num, initializer)) name_, *custom_data, data_type_, element_num, initializer))
{ {
if (update_on_change_ != nullptr) { if (initializer.type != AttributeInit::Type::Construct) {
update_on_change_(owner); /* Avoid calling update function when values are not initialized. In that case
* values must be set elsewhere anyway, which will cause a separate update tag. */
if (update_on_change_ != nullptr) {
update_on_change_(owner);
}
} }
return true; return true;
} }