Fix T83372: Point.select can be True when unselected
This commit is contained in:
parent
9f6374650a
commit
4be9df7692
Notes:
blender-bot
2023-02-14 09:03:55 +01:00
Referenced by issue #83372, Python Point.select returns unselected points sometimes
|
@ -876,7 +876,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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue