Commit: 625f799514f512949297e02426dae39ad3e95192 Author: Antonio Vazquez Date: Fri Aug 11 10:24:13 2017 +0200 Branches: greasepencil-object https://developer.blender.org/rB625f799514f512949297e02426dae39ad3e95192
Remove Opacity factor soft limit Now the range is free from 0 to 2 =================================================================== M source/blender/makesrna/intern/rna_modifier.c =================================================================== diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index d72be291967..bd19cfd52d9 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -320,16 +320,6 @@ EnumPropertyItem rna_enum_gpencil_lockshift_items[] = { # include "ABC_alembic.h" #endif -static void rna_GPencil_factor_range(PointerRNA *ptr, float *min, float *max, - float *softmin, float *softmax) -{ - *min = 0.0f; - *max = 2.0f; - - *softmin = 0.0f; - *softmax = 1.0f; -} - static void rna_UVProject_projectors_begin(CollectionPropertyIterator *iter, PointerRNA *ptr) { UVProjectModifierData *uvp = (UVProjectModifierData *)ptr->data; @@ -5167,9 +5157,8 @@ static void rna_def_modifier_gpencilopacity(BlenderRNA *brna) prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "factor"); - RNA_def_property_float_funcs(prop, NULL, NULL, "rna_GPencil_factor_range"); RNA_def_property_ui_range(prop, 0, 2.0, 0.1, 3); - RNA_def_property_ui_text(prop, "Factor", "Factor of opacity"); + RNA_def_property_ui_text(prop, "Factor", "Factor of Opacity"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); prop = RNA_def_property(srna, "passindex", PROP_INT, PROP_NONE); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs