Fix T83372: Point.select can be True when unselected

This commit is contained in:
Campbell Barton 2021-01-06 23:24:45 +11:00
parent bc3e38ca3a
commit 967cf303f3
Notes: blender-bot 2023-02-14 00:13:36 +01:00
Referenced by issue #83372, Python Point.select returns unselected points sometimes
Referenced by issue #83216, Potential candidates for corrective releases
2 changed files with 3 additions and 2 deletions

View File

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

View File

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