Changing property defaults will unintentionally change people's .blend files #248
Labels
blender-quirk
Anything that relates to the Blender API being quirky
feature request
A request for adding in a new feature
In Blender a
PropertyGroup
is not saved to the .blend file until someone actually sets it to a value. Until then it will just present with the default value in the UI as well as if you access it by dot-notation through the python API.This means that if a property has it's default value updated in the add-on, the corresponding property will also "change" for everyone who was satisfied with the default and didn't change the value. This will of course lead to unwanted "changes" to people's .blend files if the add-on changes defaults. So it would be ideal with some sort of mechanism to either always make sure that all properties are saved to the .blend file or be aware of this quirk and update the .blend file as appropriate when opening an older file with a newer add-on.
Sources:
The text was updated successfully, but these errors were encountered: