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:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-11-17 07:47:39 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-11-17 07:47:39 +0300
commitc8ca36a9c8b9f8fabf1b8f09507f35349017cfbf (patch)
treef99eff303c17261e3fc8d19f192376f67977d179 /source/blender/src/headerbuttons.c
parent8768707610fbc1cea2bde069cdfd6d3f3e2fc522 (diff)
Fixed the delete texture button for sculptmode textures
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index 6d9e216c47a..03f5972ee0f 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -164,6 +164,7 @@
#include "BDR_editobject.h"
#include "BDR_editcurve.h"
#include "BDR_editmball.h"
+#include "BDR_sculptmode.h"
#include "BPY_extern.h"
#include "BPY_menus.h"
@@ -804,7 +805,10 @@ void do_global_buttons(unsigned short event)
}
else { /* from brush */
br= G.scene->toolsettings->imapaint.brush;
- if(br) {
+ if(G.f & G_SCULPTMODE) {
+ sculptmode_rem_tex(NULL, NULL);
+ allqueue(REDRAWBUTSSHADING, 0);
+ } else if(br) {
mtex= br->mtex[ br->texact ];
if(mtex) {
if(mtex->tex) mtex->tex->id.us--;