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-12-27 10:43:48 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-12-27 10:43:48 +0300
commit11e035b0fc01cda870523e395e9a1b085fc1df80 (patch)
treed2a7e28d6b3d2fcac90f767e7bde09afcaa59082 /source/blender/src/sculptmode.c
parent65bfa3b05fb2f5b2193e6e00edd0ef5e7ce55d86 (diff)
Checking the sculptmode state should include the sculpt session
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r--source/blender/src/sculptmode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index 6e5035c1fd1..5a1b7d74ee4 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -1622,6 +1622,9 @@ void sculptmode_draw_mesh(int only_damaged) {
void sculptmode_correct_state()
{
+ if(!sculpt_session())
+ sculpt_init_session();
+
if(get_mesh(sculpt_session()->active_ob) != get_mesh(OBACT))
set_sculpt_object(OBACT);