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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2004-04-07 19:13:06 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2004-04-07 19:13:06 +0400
commit1923c6f41b5b55f082202fd3858afe788f25b4d5 (patch)
tree281c9353dce15b6612a14678de3e0a4bc437a4d7 /source/blender/src/header_image.c
parent774297226bf984f8e6b99bd1ce59a5be2747e995 (diff)
'Replace Image' did not work in the Image Window, it worked as 'Load Image'.
Patch provided by Carsten Wartmann. Got rid of a 'unused variable' warning too.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r--source/blender/src/header_image.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index bd118ae7851..434dad2238d 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -114,7 +114,7 @@ void image_replace(Image *old, Image *new)
TFace *tface;
Mesh *me;
int a, rep=0;
-
+
new->tpageflag= old->tpageflag;
new->twsta= old->twsta;
new->twend= old->twend;
@@ -557,14 +557,14 @@ static void do_image_imagemenu(void *arg, int event)
else
activate_fileselect(FILE_SPECIAL, "SELECT IMAGE", name, load_space_image);
break;
- case 1:
+ case 1: /* Replace */
if(G.sima->image) strcpy(name, G.sima->image->name);
else strcpy(name, U.textudir);
if(G.qual==LR_CTRLKEY)
- activate_imageselect(FILE_SPECIAL, "Replace Image", name, load_space_image);
+ activate_imageselect(FILE_SPECIAL, "Replace Image", name, replace_space_image);
else
- activate_fileselect(FILE_SPECIAL, "Replace Image", name, load_space_image);
+ activate_fileselect(FILE_SPECIAL, "Replace Image", name, replace_space_image);
break;
case 2: /* Pack Image */
ima = G.sima->image;
@@ -755,8 +755,6 @@ static uiBlock *image_uvs_propfalloffmenu(void *arg_unused)
static void do_image_uvs_transformmenu(void *arg, int event)
{
- extern int prop_mode;
-
switch(event) {
case 0: /* Grab */
transform_tface_uv('g');
@@ -780,7 +778,6 @@ static uiBlock *image_uvs_transformmenu(void *arg_unused)
{
uiBlock *block;
short yco = 20, menuwidth = 120;
- extern int prop_mode;
block= uiNewBlock(&curarea->uiblocks, "image_uvs_transformmenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin);
uiBlockSetButmFunc(block, do_image_uvs_transformmenu, NULL);