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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-02-03 15:31:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-03 15:31:40 +0300
commit08b1d587382a072f1da317c3f3c8ac6b50db78e9 (patch)
treead3383190c85f12caec3359b5975f688717a5ef6 /source
parent7c48f1994a716b2c52ceddb83bdd7d540bd5d79d (diff)
Allow enter/exit editmode in background mode. (asking for trouble doing this but the checks are simple)
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editobject.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 4a70e89dd07..2a1d508bf59 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -1740,7 +1740,8 @@ void enter_editmode(int wc)
if(wc) waitcursor(0);
- scrarea_queue_headredraw(curarea);
+ if (G.background==0)
+ scrarea_queue_headredraw(curarea);
}
void exit_editmode(int flag) /* freedata==0 at render, 1= freedata, 2= do undo buffer too */
@@ -1817,8 +1818,9 @@ void exit_editmode(int flag) /* freedata==0 at render, 1= freedata, 2= do undo b
allqueue(REDRAWNLA, 0);
allqueue(REDRAWIPO, 0);
allqueue(REDRAWOOPS, 0);
-
- scrarea_queue_headredraw(curarea);
+
+ if (G.background==0)
+ scrarea_queue_headredraw(curarea);
if(G.obedit==NULL && (flag & EM_FREEUNDO))
BIF_undo_push("Editmode");