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:
authorJulian Eisel <eiseljulian@gmail.com>2017-12-01 20:06:06 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-12-01 20:14:24 +0300
commit108c4bd5026d2843c8bd49ffb1cee41d6d905375 (patch)
tree6877b08feedb66ede84a56f7b95fd177f4cc195d /source/blender/blenkernel/intern/workspace.c
parentd10578df46ee82889e5bb4ff044dd3a57e453e9a (diff)
Fix crash reading 2.8 files with workspace.view_layer set
Stupid error from e8c15e0ed15f8369d. Also removed WorkSpace.view_layer usage and marked as deprecated.
Diffstat (limited to 'source/blender/blenkernel/intern/workspace.c')
-rw-r--r--source/blender/blenkernel/intern/workspace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/workspace.c b/source/blender/blenkernel/intern/workspace.c
index b6b7d936c76..8554cf0fb28 100644
--- a/source/blender/blenkernel/intern/workspace.c
+++ b/source/blender/blenkernel/intern/workspace.c
@@ -445,7 +445,6 @@ ViewLayer *BKE_workspace_view_layer_get(const WorkSpace *workspace, const Scene
}
void BKE_workspace_view_layer_set(WorkSpace *workspace, ViewLayer *layer, Scene *scene)
{
- workspace->view_layer = layer;
workspace_relation_ensure_updated(&workspace->scene_viewlayer_relations, scene, layer);
}