Cleanup: remove MLOOPUV_EDGESEL
This was not set anywhere, code relies on MLOOPUV_VERTSEL everywhere. BMLoopUV.select_edge was never returning True and wasnt updating uv select state when set manually. Afaict, there were no official Addons using this from python. Resolves T65836 Maniphest Tasks: T65836 Differential Revision: https://developer.blender.org/D6772
This commit is contained in:
@@ -331,7 +331,7 @@ typedef struct MLoopUV {
|
||||
|
||||
/** #MLoopUV.flag */
|
||||
enum {
|
||||
MLOOPUV_EDGESEL = (1 << 0),
|
||||
/* MLOOPUV_DEPRECATED = (1 << 0), MLOOPUV_EDGESEL removed */
|
||||
MLOOPUV_VERTSEL = (1 << 1),
|
||||
MLOOPUV_PINNED = (1 << 2),
|
||||
};
|
||||
|
@@ -1973,10 +1973,6 @@ static void rna_def_mloopuv(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", MLOOPUV_VERTSEL);
|
||||
RNA_def_property_ui_text(prop, "UV Select", "");
|
||||
|
||||
prop = RNA_def_property(srna, "select_edge", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", MLOOPUV_EDGESEL);
|
||||
RNA_def_property_ui_text(prop, "UV Edge Select", "");
|
||||
}
|
||||
|
||||
static void rna_def_mloopcol(BlenderRNA *brna)
|
||||
|
@@ -72,7 +72,6 @@ static int bpy_bmloopuv_uv_set(BPy_BMLoopUV *self, PyObject *value, void *UNUSED
|
||||
|
||||
PyDoc_STRVAR(bpy_bmloopuv_flag__pin_uv_doc, "UV pin state.\n\n:type: boolean");
|
||||
PyDoc_STRVAR(bpy_bmloopuv_flag__select_doc, "UV select state.\n\n:type: boolean");
|
||||
PyDoc_STRVAR(bpy_bmloopuv_flag__select_edge_doc, "UV edge select state.\n\n:type: boolean");
|
||||
|
||||
static PyObject *bpy_bmloopuv_flag_get(BPy_BMLoopUV *self, void *flag_p)
|
||||
{
|
||||
@@ -110,11 +109,6 @@ static PyGetSetDef bpy_bmloopuv_getseters[] = {
|
||||
(setter)bpy_bmloopuv_flag_set,
|
||||
bpy_bmloopuv_flag__select_doc,
|
||||
(void *)MLOOPUV_VERTSEL},
|
||||
{"select_edge",
|
||||
(getter)bpy_bmloopuv_flag_get,
|
||||
(setter)bpy_bmloopuv_flag_set,
|
||||
bpy_bmloopuv_flag__select_edge_doc,
|
||||
(void *)MLOOPUV_EDGESEL},
|
||||
|
||||
{NULL, NULL, NULL, NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
Reference in New Issue
Block a user