Page MenuHome

Fix T74613: Assign the default face set color in the versioning code
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Mar 10 2020, 1:32 PM.

Details

Summary

A default face set color was not being set in previously saved meshes,
so it will always render the default face set with a random color until
the colors were recalculated.

Diff Detail

Repository
rB Blender

Event Timeline

  • Initialize the default face set color when creating the datalayer for
Dalai Felinto (dfelinto) requested changes to this revision.Mar 10 2020, 2:25 PM

This doversion code won't work for files saved in master. For example attached file:

This revision now requires changes to proceed.Mar 10 2020, 2:25 PM

This has a few issues:

  1. Neglected to shift do_versions_after_linking_280 as well
  2. The new code is not under the conditioning of the new version. Which means me->face_sets_color_default = abs(face_sets[0]); is set again at all times.

If this is the intended behaviour this should happen elsewhere (in readfile.c)

  • Bump do_versions_after_linking

As far as versioning (and my tests go) it seems fine. Not sure of the internals of face set though.

This revision is now accepted and ready to land.Mar 10 2020, 3:51 PM