[Bf-blender-cvs] [ef47c99fcb9] master: Fix T69651: Inpaint node distance parameter: Default value does not match minimum value

Philipp Oeser noreply at git.blender.org
Tue Sep 10 13:37:54 CEST 2019


Commit: ef47c99fcb9e4f34e9506903c1eee699ab279b66
Author: Philipp Oeser
Date:   Mon Sep 9 13:07:26 2019 +0200
Branches: master
https://developer.blender.org/rBef47c99fcb9e4f34e9506903c1eee699ab279b66

Fix T69651: Inpaint node distance parameter: Default value does not match minimum value

probably makes sense to allow for zero iterations...

Reviewers: jbakker

Maniphest Tasks: T69651

Differential Revision: https://developer.blender.org/D5728

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

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

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

diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index a6481341868..c2c937a75f8 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -5729,7 +5729,7 @@ static void def_cmp_inpaint(StructRNA *srna)
 
   prop = RNA_def_property(srna, "distance", PROP_INT, PROP_NONE);
   RNA_def_property_int_sdna(prop, NULL, "custom2");
-  RNA_def_property_range(prop, 1, 10000);
+  RNA_def_property_range(prop, 0, 10000);
   RNA_def_property_ui_text(prop, "Distance", "Distance to inpaint (number of iterations)");
   RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
 }



More information about the Bf-blender-cvs mailing list