Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-09-19 14:54:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-19 14:54:49 +0400
commit1c603b63c712a539056e122f3facbfdfcc3dd912 (patch)
treedd78566f4686b02ba85329c539e6f210a3e3c685 /source/blender/src/headerbuttons.c
parent2f46df39b4adae4e54a16cfbb2105159e66ae184 (diff)
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.
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index adc40683bc0..4564db8d918 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -1297,18 +1297,16 @@ void do_global_buttons(unsigned short event)
break;
case B_IMAGEDELETE:
-
- if(G.sima->image && BLI_streq(G.sima->image->id.name+2, "Render Result")==0) {
- /* Run on non render images, unlink normally */
- G.sima->image= NULL;
- image_changed(G.sima, 0);
- BIF_undo_push("Unlink Image");
- allqueue(REDRAWIMAGE, 0);
- } else {
+ if(G.sima->image && (G.sima->image->type == IMA_TYPE_R_RESULT || G.sima->image->type == IMA_TYPE_COMPOSITE)) {
/* Run if G.sima is render, remove the render and display the meshes image if it exists */
G.sima->image= NULL;
what_image(G.sima);
allqueue(REDRAWIMAGE, 0);
+ } else {
+ /* Run on non render images, unlink normally */
+ image_changed(G.sima, NULL);
+ BIF_undo_push("Unlink Image");
+ allqueue(REDRAWIMAGE, 0);
}
break;