Local Image View for UV/Editmode

When mapping multiple images on 1 mesh, the UV coordinates often overlap and in many cases you only want to edit the uv coords for the faces applied to that image,
this is an option that only displays UV's for faces use the currently displayed image.
This commit is contained in:
2007-09-19 10:54:49 +00:00
parent 2f46df39b4
commit 1c603b63c7
10 changed files with 186 additions and 179 deletions

View File

@@ -1858,8 +1858,8 @@ static void createTransUVs(TransInfo *t)
/* count */
for (efa= em->faces.first; efa; efa= efa->next) {
if SIMA_FACEDRAW_CHECK(efa) {
tf= CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
tf= CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
if SIMA_FACEDRAW_CHECK(efa, tf) {
if (SIMA_UVSEL_CHECK(efa, tf, 0)) countsel++;
if (SIMA_UVSEL_CHECK(efa, tf, 1)) countsel++;
if (SIMA_UVSEL_CHECK(efa, tf, 2)) countsel++;
@@ -1884,8 +1884,8 @@ static void createTransUVs(TransInfo *t)
td= t->data;
td2d= t->data2d;
for (efa= em->faces.first; efa; efa= efa->next) {
if SIMA_FACEDRAW_CHECK(efa) {
tf= CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
tf= CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
if SIMA_FACEDRAW_CHECK(efa, tf) {
if(propmode || SIMA_UVSEL_CHECK(efa, tf, 0))
UVsToTransData(td++, td2d++, tf->uv[0], SIMA_UVSEL_CHECK(efa, tf, 0));
if(propmode || SIMA_UVSEL_CHECK(efa, tf, 1))