[Bf-blender-cvs] [89105e25560] greasepencil-object: Initialize selection alpha
Antonio Vazquez
noreply at git.blender.org
Tue Oct 10 11:12:55 CEST 2017
Commit: 89105e25560801119af4ecbd3e0bd92e65599a95
Author: Antonio Vazquez
Date: Tue Oct 10 11:10:50 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB89105e25560801119af4ecbd3e0bd92e65599a95
Initialize selection alpha
There is a problem with this value for old 2.7x files, so the value is set to 1.0 when the file is from previous versions.
The initialization is done in weighttype section because this is a safe checking for old files and it is a related parameter.
===================================================================
M source/blender/blenloader/intern/versioning_280.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 35df352eaeb..9e26263e71b 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -506,6 +506,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
/* sculpt brushes */
GP_BrushEdit_Settings *gset = &scene->toolsettings->gp_sculpt;
if (gset) {
+ gset->alpha = 1.0f;
gset->weighttype = GP_EDITBRUSH_TYPE_WEIGHT;
}
}
More information about the Bf-blender-cvs
mailing list