diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 12:36:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 12:36:07 +0300 |
commit | 6d2e2e30d50c40f302b62d3601b5742d7c7056c6 (patch) | |
tree | dd93c355c84406b0601ff08e1e7c6843fef209d6 /source | |
parent | ff0a29df1458c0890c6f4f6f2fd252765d142423 (diff) |
Fix/workaround issues in pose and edit mode
Edit mode was unable to select, pose mode was unable to move bones.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/layer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c index badceb5c01d..76960fbc088 100644 --- a/source/blender/blenkernel/intern/layer.c +++ b/source/blender/blenkernel/intern/layer.c @@ -1150,7 +1150,10 @@ static bool object_bases_iterator_is_valid_ex(View3D *v3d, Base *base, const int return false; } } - + /* Any flag satisfies the condition. */ + if (flags == ~0) { + return (base->flag != 0); + } /* flags may be more than one flag, so we can't check != 0. */ return ((base->flag & flags) == flags); } |