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>2009-07-18 17:29:47 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-07-18 17:29:47 +0400
commitc13674614e96b0b8d38f6717374a3181bb59a50c (patch)
tree721b961020b8a6c5b6f318a87961a9e84a83e075 /source/blender/editors/sculpt_paint
parent3a32411f2b756851cf0211e2769ac4a31bbfa4c3 (diff)
2.5/Sculpt:
* Fixed the NKEY panel not updating when switching to sculpt mode * Removed some old XXX'd code for testing textures, can replace that now with proper brush-texture UI
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 7245218c688..b1dcef39eee 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1627,8 +1627,6 @@ static int sculpt_toggle_mode(bContext *C, wmOperator *op)
sculptsession_free(ts->sculpt);
}
else {
- MTex *mtex; // XXX: temporary
-
/* Enter sculptmode */
G.f |= G_SCULPTMODE;
@@ -1647,17 +1645,7 @@ static int sculpt_toggle_mode(bContext *C, wmOperator *op)
/* If there's no brush, create one */
brush_check_exists(&ts->sculpt->brush);
- /* XXX: testing: set the brush texture to the first available one */
- if(G.main->tex.first) {
- Tex *tex = G.main->tex.first;
- if(tex->type) {
- mtex = MEM_callocN(sizeof(MTex), "test mtex");
- ts->sculpt->brush->texact = 0;
- ts->sculpt->brush->mtex[0] = mtex;
- mtex->tex = tex;
- mtex->size[0] = mtex->size[1] = mtex->size[2] = 50;
- }
- }
+ WM_event_add_notifier(C, NC_SCENE|ND_MODE, CTX_data_scene(C));
}
return OPERATOR_FINISHED;