Fix: UnifiedPaintSetting converting values incorrectly
Mistake in 6a03e8249d
Pull Request: https://projects.blender.org/blender/blender/pulls/139905
This commit is contained in:
@@ -1226,7 +1226,7 @@ static void scene_blend_read_data(BlendDataReader *reader, ID *id)
|
||||
|
||||
/* Prior to 5.0, the brush->size value is expected to be the radius, not the diameter. To
|
||||
* ensure correct behavior, convert this when reading newer files. */
|
||||
if (BLO_read_fileversion_get(reader)) {
|
||||
if (BLO_read_fileversion_get(reader) > 500) {
|
||||
ups->size = std::max(ups->size / 2, 1);
|
||||
ups->unprojected_radius = std::max(ups->unprojected_radius / 2, 0.001f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user