GPencil: Disable animation for Onion Custom Colors

This was forgotten by error. All Onion props must be disabled.
This commit is contained in:
Antonio Vazquez 2020-04-18 18:48:17 +02:00
parent 101f00e696
commit 89d49ae218
Notes: blender-bot 2023-02-14 09:02:41 +01:00
Referenced by issue #75999, Can't change Metaball Resolution lower than 5mm
Referenced by issue #75886, Blender Crash when open file from 2.82a
1 changed files with 2 additions and 0 deletions

View File

@ -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");