Fix 3D "View Selected" skip camera option
authorCampbell Barton <ideasman42@gmail.com>
Thu, 7 Mar 2019 01:22:56 +0000 (12:22 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 7 Mar 2019 01:22:56 +0000 (12:22 +1100)
source/blender/editors/space_view3d/view3d_edit.c

index f6a9fc8d70c8bfa21cb9e1adfd6e1caa54519d36..6a65e86c3d62fccbc50d5a1124df840c51002363 100644 (file)
@@ -2898,7 +2898,8 @@ static int viewselected_exec(bContext *C, wmOperator *op)
                for (base_eval = FIRSTBASE(view_layer_eval); base_eval; base_eval = base_eval->next) {
                        if (BASE_SELECTED(v3d, base_eval)) {
 
-                               if (skip_camera && base_eval->object == v3d->camera) {
+                               Object *ob = DEG_get_original_object(base_eval->object);
+                               if (skip_camera && ob == v3d->camera) {
                                        continue;
                                }