GPencil: Fix dash modifier reading error.

The reference for parent modifier in segment data is not assigned. Now fixed.
This commit is contained in:
YimingWu 2021-09-16 08:40:37 +08:00
parent 28bd74c186
commit 289f68588a
1 changed files with 3 additions and 0 deletions

View File

@ -1025,6 +1025,9 @@ void BKE_gpencil_modifier_blend_read_data(BlendDataReader *reader, ListBase *lb)
else if (md->type == eGpencilModifierType_Dash) {
DashGpencilModifierData *gpmd = (DashGpencilModifierData *)md;
BLO_read_data_address(reader, &gpmd->segments);
for (int i = 0; i < gpmd->segments_len; i++) {
gpmd->segments[i].dmd = gpmd;
}
}
}
}