Page MenuHome

Preferences: disable loading from the startup.blend
ClosedPublic

Authored by Campbell Barton (campbellbarton) on Jul 30 2019, 5:25 AM.

Details

Summary

Simplify startup/preferences settings by moving it to a struct.

  • Remove preferences from startup.blend save/loading (only use userpref.blend).
  • Removes the need for BLO_update_defaults_userpref_blend except for some system spesific values.
  • Move preferences to a struct definition.

Useful for defaults once D4500: DNA Defaults are supported.

Diff Detail

Repository
rB Blender
Branch
TEMP-USERDEF-FROM-MEMORY (branched from master)
Build Status
Buildable 4214
Build 4214: arc lint + arc unit

Event Timeline

  • Fix check for skipping preferences
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
  • Don't use magic numbers

It's not clear to me why enabling of add-ons is done separately from other defaults.

Could we just call BLO_update_defaults_userpref_blend immediately from BKE_blendfile_userdef_from_defaults?

This revision is now accepted and ready to land.Jul 30 2019, 11:54 PM

Those can be refactored after, since there is some chance for those changes to back-fire.