[Bf-blender-cvs] [89d49ae218b] blender-v2.83-release: GPencil: Disable animation for Onion Custom Colors

Antonio Vazquez noreply at git.blender.org
Sat Apr 18 18:48:25 CEST 2020


Commit: 89d49ae218b731b6e6f89457b8180c857a05637d
Author: Antonio Vazquez
Date:   Sat Apr 18 18:48:17 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB89d49ae218b731b6e6f89457b8180c857a05637d

GPencil: Disable animation for Onion Custom Colors

This was forgotten by error. All Onion props must be disabled.

===================================================================

M	source/blender/makesrna/intern/rna_gpencil.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 4a20df048bd..18dc0026e78 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -2037,6 +2037,7 @@ static void rna_def_gpencil_data(BlenderRNA *brna)
   RNA_def_property_array(prop, 3);
   RNA_def_property_range(prop, 0.0f, 1.0f);
   RNA_def_property_float_array_default(prop, onion_dft1);
+  RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0);
   RNA_def_property_ui_text(prop, "Before Color", "Base color for ghosts before the active frame");
   RNA_def_property_update(
       prop, NC_SCREEN | NC_SCENE | ND_TOOLSETTINGS | ND_DATA | NC_GPENCIL, "rna_GPencil_update");
@@ -2046,6 +2047,7 @@ static void rna_def_gpencil_data(BlenderRNA *brna)
   RNA_def_property_array(prop, 3);
   RNA_def_property_range(prop, 0.0f, 1.0f);
   RNA_def_property_float_array_default(prop, onion_dft2);
+  RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0);
   RNA_def_property_ui_text(prop, "After Color", "Base color for ghosts after the active frame");
   RNA_def_property_update(
       prop, NC_SCREEN | NC_SCENE | ND_TOOLSETTINGS | ND_DATA | NC_GPENCIL, "rna_GPencil_update");



More information about the Bf-blender-cvs mailing list