[Bf-blender-cvs] [967cf303f32] master: Fix T83372: Point.select can be True when unselected
Campbell Barton
noreply at git.blender.org
Wed Jan 6 13:32:43 CET 2021
Commit: 967cf303f32fa5a920c34c934d63e0f3c582b886
Author: Campbell Barton
Date: Wed Jan 6 23:24:45 2021 +1100
Branches: master
https://developer.blender.org/rB967cf303f32fa5a920c34c934d63e0f3c582b886
Fix T83372: Point.select can be True when unselected
===================================================================
M source/blender/makesrna/intern/rna_curve.c
M source/blender/makesrna/intern/rna_lattice.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index 93880a09ab4..a46026fd08f 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -872,7 +872,7 @@ static void rna_def_bpoint(BlenderRNA *brna)
/* Boolean values */
prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "f1", 0);
+ RNA_def_property_boolean_sdna(prop, NULL, "f1", SELECT);
RNA_def_property_ui_text(prop, "Select", "Selection status");
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
diff --git a/source/blender/makesrna/intern/rna_lattice.c b/source/blender/makesrna/intern/rna_lattice.c
index fbbee1f5900..25472ce9520 100644
--- a/source/blender/makesrna/intern/rna_lattice.c
+++ b/source/blender/makesrna/intern/rna_lattice.c
@@ -24,6 +24,7 @@
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meshdata_types.h"
+#include "DNA_object_types.h"
#include "BLI_utildefines.h"
@@ -268,7 +269,7 @@ static void rna_def_latticepoint(BlenderRNA *brna)
RNA_def_struct_path_func(srna, "rna_LatticePoint_path");
prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "f1", 0);
+ RNA_def_property_boolean_sdna(prop, NULL, "f1", SELECT);
RNA_def_property_ui_text(prop, "Point selected", "Selection status");
prop = RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION);
More information about the Bf-blender-cvs
mailing list