diff options
-rw-r--r-- | source/blender/editors/object/object_lattice.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_lattice.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_lattice.c b/source/blender/editors/object/object_lattice.c index e85f47837ef..89f9f5de311 100644 --- a/source/blender/editors/object/object_lattice.c +++ b/source/blender/editors/object/object_lattice.c @@ -203,7 +203,7 @@ static int lattice_select_all_exec(bContext *C, wmOperator *op) while (a--) { if (bp->hide == 0) { - if (bp->f1) { + if (bp->f1 & SELECT) { action = SEL_DESELECT; break; } @@ -225,7 +225,7 @@ static int lattice_select_all_exec(bContext *C, wmOperator *op) while (a--) { if (bp->hide == 0) { - bp->f1 ^= 1; + bp->f1 ^= SELECT; } bp++; } diff --git a/source/blender/makesrna/intern/rna_lattice.c b/source/blender/makesrna/intern/rna_lattice.c index 6e42b47afce..d4082cf3d9f 100644 --- a/source/blender/makesrna/intern/rna_lattice.c +++ b/source/blender/makesrna/intern/rna_lattice.c @@ -224,6 +224,10 @@ static void rna_def_latticepoint(BlenderRNA *brna) RNA_def_struct_ui_text(srna, "LatticePoint", "Point in the lattice grid"); 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_ui_text(prop, "Point selected", "Selection status"); + prop = RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_clear_flag(prop, PROP_EDITABLE); |