Commit: 81b50bcf5f466a61ae501df015cf925cd0981e26
Author: Campbell Barton
Date:   Tue Mar 10 18:21:26 2015 +1100
Branches: master
https://developer.blender.org/rB81b50bcf5f466a61ae501df015cf925cd0981e26

Fix crash enabling dyntopo in background mode

===================================================================

M       source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c 
b/source/blender/editors/sculpt_paint/sculpt.c
index c0925ee..ea046b7 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;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to