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:
authorTon Roosendaal <ton@blender.org>2004-11-07 02:22:06 +0300
committerTon Roosendaal <ton@blender.org>2004-11-07 02:22:06 +0300
commit82cae482e934888b9d99374201cdea0325c04f25 (patch)
tree46c4311325b3bf1f299a758f99eacc308f87fcdd /source/blender/src/header_image.c
parent6423ccff411d34273143177f917ea014d1c341f8 (diff)
Added undo in UV FaceSelect mode (3d window) and in UV Image window.
Brecht; can you give it a good test :)
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r--source/blender/src/header_image.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index aa4c2eef845..01d0a532c6d 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -112,7 +112,7 @@ void load_space_image(char *str) /* called from fileselect */
image_changed(G.sima, 0);
}
-
+ BIF_undo_push("Load image UV");
allqueue(REDRAWIMAGE, 0);
}
@@ -175,6 +175,7 @@ void replace_space_image(char *str) /* called from fileselect */
image_changed(G.sima, 0);
}
+ BIF_undo_push("Replace image UV");
allqueue(REDRAWIMAGE, 0);
}
@@ -252,6 +253,7 @@ void do_image_buttons(unsigned short event)
}
/* also when image is the same: assign! 0==no tileflag: */
image_changed(G.sima, 0);
+ BIF_undo_push("Assign image UV");
break;
case B_SIMAGELOAD:
@@ -627,6 +629,7 @@ static void do_image_imagemenu(void *arg, int event)
}
}
}
+ BIF_undo_push("Pack image");
allqueue(REDRAWBUTSSHADING, 0);
allqueue(REDRAWHEADERS, 0);
break;
@@ -647,6 +650,7 @@ static void do_image_imagemenu(void *arg, int event)
error("There are no packed images to unpack");
}
}
+ BIF_undo_push("Unpack image");
allqueue(REDRAWBUTSSHADING, 0);
allqueue(REDRAWHEADERS, 0);
break;