diff options
author | Pratik Borhade <PratikPB2123> | 2022-10-01 17:28:14 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-10-01 17:28:29 +0300 |
commit | ffd8390af7d9c6dc1f9a2998789f17932a3d23cf (patch) | |
tree | 4009d90095002ddbc36bc8a6f77e126fc64bbf9a /source/blender/makesrna | |
parent | e5ccbfab09ff427ee2b31c5452c6fc63dff4ec59 (diff) |
Fix T101504: Crash when repeat value is zero
Crash triggers due to division by zero
fix is to increase minimum limit for `seg_repeat` to 1
Reviewed By: antoniov, frogstomp
Maniphest Tasks: T101504
Differential Revision: https://developer.blender.org/D16120
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil_modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index ae8208ed0d8..bbc7ce0d896 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -1812,7 +1812,7 @@ static void rna_def_modifier_gpenciltime(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); prop = RNA_def_property(srna, "seg_repeat", PROP_INT, PROP_NONE); - RNA_def_property_range(prop, 0, INT16_MAX); + RNA_def_property_range(prop, 1, INT16_MAX); RNA_def_property_ui_text(prop, "Repeat", "Number of cycle repeats"); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); |