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>2018-03-07 23:18:16 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-03-07 23:18:16 +0300
commit8851460174a5603a0e51e856b00dfa212b0162b2 (patch)
tree63c8e0b4842d2c579a6746835c86712bd26bba4d /source/blender/editors/scene
parentc00b42b710a5067073fb2cdb3b8612d43979026e (diff)
Proper fix for User Preferences window crash
Reverts rBb9ae517794765d6a1660 and fixes the issue properly. Old fix could cause NULL to be passed to functions that expect all arguments to be non-NULL.
Diffstat (limited to 'source/blender/editors/scene')
-rw-r--r--source/blender/editors/scene/scene_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/scene/scene_edit.c b/source/blender/editors/scene/scene_edit.c
index 6298f03a6b0..da720272f67 100644
--- a/source/blender/editors/scene/scene_edit.c
+++ b/source/blender/editors/scene/scene_edit.c
@@ -134,7 +134,7 @@ void ED_scene_change_update(
CTX_data_eval_ctx(C, &eval_ctx_old);
eObjectMode object_mode_old = workspace->object_mode;
ViewLayer *layer_old = BKE_view_layer_from_workspace_get(scene_old, workspace);
- Object *obact_old = layer_old ? OBACT(layer_old) : NULL;
+ Object *obact_old = OBACT(layer_old);
bool obact_new_mode_exists = ED_object_mode_generic_exists(bmain->wm.first, obact_new, workspace->object_mode);