[Bf-blender-cvs] [8c7e0f23c2b] blender2.8: Fix view local not working

Dalai Felinto noreply at git.blender.org
Mon Apr 24 18:09:22 CEST 2017


Commit: 8c7e0f23c2b870303a3045bc4f4a717253881b5b
Author: Dalai Felinto
Date:   Mon Apr 24 17:12:09 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB8c7e0f23c2b870303a3045bc4f4a717253881b5b

Fix view local not working

===================================================================

M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 804336b2976..019a431fc19 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -3049,7 +3049,7 @@ static int viewselected_exec(bContext *C, wmOperator *op)
 		/* hard-coded exception, we look for the one selected armature */
 		/* this is weak code this way, we should make a generic active/selection callback interface once... */
 		Base *base;
-		for (base = scene->base.first; base; base = base->next) {
+		for (base = sl->object_bases.first; base; base = base->next) {
 			if (TESTBASELIB_NEW(base)) {
 				if (base->object->type == OB_ARMATURE)
 					if (base->object->mode & OB_MODE_POSE)




More information about the Bf-blender-cvs mailing list