Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 5,204 Lines • ▼ Show 20 Lines | |||||
| * - #do_versions_after_linking_280 in this file. | * - #do_versions_after_linking_280 in this file. | ||||
| * - "versioning_userdef.c", #BLO_version_defaults_userpref_blend | * - "versioning_userdef.c", #BLO_version_defaults_userpref_blend | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| /* Reset the cloth mass to 1.0 in brushes with an invalid value. */ | |||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | |||||
| if (br->sculpt_tool == SCULPT_TOOL_CLOTH) { | |||||
| if (br->cloth_mass == 0.0f) { | |||||
| br->cloth_mass = 1.0f; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||