[Bf-blender-cvs] [c08ac7562cd] soc-2019-outliner: Fix crash on editbone syncing
Nathan Craddock
noreply at git.blender.org
Wed Aug 7 07:30:04 CEST 2019
Commit: c08ac7562cd1dafa0d863bc75b682ab46b16c06e
Author: Nathan Craddock
Date: Tue Aug 6 23:25:00 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rBc08ac7562cd1dafa0d863bc75b682ab46b16c06e
Fix crash on editbone syncing
===================================================================
M source/blender/editors/space_outliner/outliner_sync.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_sync.c b/source/blender/editors/space_outliner/outliner_sync.c
index 040644ee4c6..03cf03ed442 100644
--- a/source/blender/editors/space_outliner/outliner_sync.c
+++ b/source/blender/editors/space_outliner/outliner_sync.c
@@ -159,8 +159,7 @@ static void outliner_select_sync_to_object(ViewLayer *view_layer,
static void outliner_select_sync_to_edit_bone(TreeElement *te, TreeStoreElem *tselem)
{
- Object *ob = (Object *)tselem->id;
- bArmature *arm = ob->data;
+ bArmature *arm = (bArmature *)tselem->id;
EditBone *ebone = (EditBone *)te->directdata;
if (EBONE_SELECTABLE(arm, ebone)) {
More information about the Bf-blender-cvs
mailing list