Commit: 93244ec3366f55e462e52963fd3fa808fe1e2c14 Author: Antonio Vazquez Date: Mon Jan 17 12:25:29 2022 +0100 Branches: asset-greasepencil https://developer.blender.org/rB93244ec3366f55e462e52963fd3fa808fe1e2c14
Fix crash importing due wrong active frame pointer The active frame was not NULL and this linked the frame with the asset frame instead of target frame. =================================================================== M source/blender/editors/gpencil/gpencil_asset.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_asset.c b/source/blender/editors/gpencil/gpencil_asset.c index a487061937f..3d94adf3791 100644 --- a/source/blender/editors/gpencil/gpencil_asset.c +++ b/source/blender/editors/gpencil/gpencil_asset.c @@ -998,6 +998,7 @@ static bool gpencil_asset_append_strokes(tGPDasset *tgpa) if (gpl_target == NULL) { gpl_target = BKE_gpencil_layer_duplicate(gpl_asset, false, false); BLI_assert(gpl_target != NULL); + gpl_target->actframe = NULL; BLI_listbase_clear(&gpl_target->frames); BLI_addtail(&gpd_target->layers, gpl_target); is_new_gpl = true; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs