diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-28 13:42:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-28 13:42:17 +0400 |
commit | 57f4844c43c097356c321f6b7efd00646ecd50fc (patch) | |
tree | eec787ce83114fb941e340c1fd1ba613d96eb1ca /source/blender/makesrna/intern/rna_space.c | |
parent | fdbae9966851e8a7cb981c2755482e7500e4ea38 (diff) |
make drawing faces in the UV editor an image space option, re-using the mesh option was lazy and doesn't make much sense.
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index f4753e2efbe..b79d5395eec 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -990,7 +990,12 @@ static void rna_def_space_image_uv(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "flag", SI_COORDFLOATS); RNA_def_property_ui_text(prop, "Normalized Coordinates", "Display UV coordinates from 0.0 to 1.0 rather than in pixels"); RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL); - + + prop= RNA_def_property(srna, "show_faces", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SI_NO_DRAWFACES); + RNA_def_property_ui_text(prop, "Draw Faces", "Draw faces over the image"); + RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL); + prop= RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ); RNA_def_property_array(prop, 2); RNA_def_property_float_funcs(prop, "rna_SpaceImageEditor_cursor_location_get", "rna_SpaceImageEditor_cursor_location_set", NULL); |