mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix crash enabling dyntopo in background mode
This commit is contained in:
parent
f1a0c2a4f0
commit
81b50bcf5f
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue