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>2003-10-28 17:37:47 +0300
committerTon Roosendaal <ton@blender.org>2003-10-28 17:37:47 +0300
commita5247cf5b8ef9070d8fe9869324b3661382f283b (patch)
treeab5a545db153f42dc4d345e6d1ac8cb5af65c38f
parent4bec8ba7d53e4b90c683e183f1090a859a0e5a0e (diff)
- fixed bug in wrong event code, causing some plugin buttons not working
- added redraw events to plugin buttons, to show updates better
-rw-r--r--source/blender/include/butspace.h6
-rw-r--r--source/blender/src/buttons_shading.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/include/butspace.h b/source/blender/include/butspace.h
index 6de56673515..2eeae8da886 100644
--- a/source/blender/include/butspace.h
+++ b/source/blender/include/butspace.h
@@ -173,10 +173,10 @@ void test_idbutton_cb(void *namev, void *arg2_unused);
#define B_REDRAWCBAND 1318
#define B_BANDCOL 1319
#define B_LOADTEXIMA1 1320
-#define B_PLUGBUT 1321
-#define B_TEXPRV 1322
+#define B_TEXPRV 1321
-/* plugbut reserves 24 buttons at least! */
+#define B_PLUGBUT 1325
+/* B_PLUGBUT reserves 24 buttons at least! */
#define B_ENV_MAKE 1350
#define B_ENV_FREE 1351
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index 13b3fd54774..df7737fce1c 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -619,6 +619,7 @@ void do_texbuts(unsigned short event)
if(pit && pit->callback) {
pit->callback(event - B_PLUGBUT);
BIF_all_preview_changed();
+ allqueue(REDRAWBUTSSHADING, 0);
}
}
}
@@ -640,7 +641,7 @@ static void texture_panel_plugin(Tex *tex)
pit= tex->plugin;
for(a=0; a<pit->stypes; a++) {
- uiDefButS(block, ROW, B_TEXPRV, pit->stnames+16*a, (76*a), 152, 75, 20, &tex->stype, 2.0, (float)a, 0, 0, "");
+ uiDefButS(block, ROW, B_TEXREDR_PRV, pit->stnames+16*a, (76*a), 152, 75, 20, &tex->stype, 2.0, (float)a, 0, 0, "");
}
varstr= pit->varstr;