Page MenuHome

GPencil: Patch old files after the change in how the first frame is used
ClosedPublic

Authored by Antonio Vazquez (antoniov) on Aug 6 2020, 4:33 PM.

Details

Summary

This patching duplicates the first frame of the layer if the first frame number is not equals to the scene first frame number.

Related to T79567

This is the result after applying the patch (Left 2.83, right 2.90)

Diff Detail

Repository
rB Blender

Event Timeline

Antonio Vazquez (antoniov) edited the summary of this revision. (Show Details)
Dalai Felinto (dfelinto) added inline comments.
source/blender/blenloader/intern/versioning_290.c
199

Nit picking, I would either move both ifs to the same line, or do a short exit for the first one. In other words:

A) if (gpf && gpf->framenum > scene->r.sfra) {

B)

if (gpf != NULL) {
    continue;
}
This revision is now accepted and ready to land.Aug 6 2020, 5:22 PM