[Bf-blender-cvs] [28985ccc05f] master: Fix T99583: Missing update for option in particle edit mode

Pratik Borhade noreply at git.blender.org
Tue Jul 19 21:21:01 CEST 2022


Commit: 28985ccc05ff15dd22184863b8c57a0851fc9614
Author: Pratik Borhade
Date:   Tue Jul 19 14:20:44 2022 -0500
Branches: master
https://developer.blender.org/rB28985ccc05ff15dd22184863b8c57a0851fc9614

Fix T99583: Missing update for option in particle edit mode

Missing Ui refresh when property is accessed through shortcut.
Use RNA_def_property_update to solve this.

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

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

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

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

diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 3de9e632ff6..2e1fa8db7fe 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -1303,6 +1303,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
   RNA_def_property_boolean_sdna(prop, NULL, "flag", PE_INTERPOLATE_ADDED);
   RNA_def_property_ui_text(
       prop, "Interpolate", "Interpolate new particles from the existing ones");
+  RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);
 
   prop = RNA_def_property(srna, "default_key_count", PROP_INT, PROP_NONE);
   RNA_def_property_int_sdna(prop, NULL, "totaddkey");



More information about the Bf-blender-cvs mailing list