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>2018-02-07 10:33:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-07 10:35:05 +0300
commitda128c12b513179e9fd9743aecb60824c221bb8e (patch)
tree3125054be1b5d8cac29651fc6fcffa1f31e6edcb /source/blender/blenkernel/BKE_workspace.h
parent17f5d7f3c53da2cd90470efe13c54dc708297f4b (diff)
Fix error with Main.eval_ctx.object_mode being unset
This made vertex/weight/sculpt crash. Add BKE_workspace_update_object_mode which sets the object mode from the workspace. We may want to re-visit exactly when this is set, for now call within wm_event_do_refresh_wm_and_depsgraph.
Diffstat (limited to 'source/blender/blenkernel/BKE_workspace.h')
-rw-r--r--source/blender/blenkernel/BKE_workspace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_workspace.h b/source/blender/blenkernel/BKE_workspace.h
index 9f989f7ae8f..1c1f15ec99a 100644
--- a/source/blender/blenkernel/BKE_workspace.h
+++ b/source/blender/blenkernel/BKE_workspace.h
@@ -149,6 +149,11 @@ void BKE_workspace_update_tagged(struct EvaluationContext *eval_ctx,
struct WorkSpace *workspace,
struct Scene *scene);
+void BKE_workspace_update_object_mode(
+ struct EvaluationContext *eval_ctx,
+ struct WorkSpace *workspace,
+ struct Scene *scene);
+
#undef GETTER_ATTRS
#undef SETTER_ATTRS