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,9 +441,13 @@ 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 (initializer.type != AttributeInit::Type::Construct) {
/* 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) { if (update_on_change_ != nullptr) {
update_on_change_(owner); update_on_change_(owner);
} }
}
return true; return true;
} }
return false; return false;