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:
authorCampbell Barton <ideasman42@gmail.com>2015-03-10 10:21:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-10 10:21:26 +0300
commit81b50bcf5f466a61ae501df015cf925cd0981e26 (patch)
tree7579f4fd2ad50885ed63ffe7c4722a3b835646fd /source/blender/editors/sculpt_paint/sculpt.c
parentf1a0c2a4f025ce26aabab055ce04aecf34bf90ea (diff)
Fix crash enabling dyntopo in background mode
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index c0925eeca39..ea046b7d4d5 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -56,6 +56,7 @@
#include "BKE_ccg.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
+#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_key.h"
#include "BKE_library.h"
@@ -4650,7 +4651,7 @@ static int sculpt_dynamic_topology_toggle_exec(bContext *C, wmOperator *UNUSED(o
Object *ob = CTX_data_active_object(C);
SculptSession *ss = ob->sculpt;
- if (!GPU_vertex_buffer_support()) {
+ if (!G.background && !GPU_vertex_buffer_support()) {
return OPERATOR_CANCELLED;
}