diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-08-14 21:11:10 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-08-14 21:11:10 +0400 |
commit | 4959f424b86545166a6ca6fc43ebf04d0537b04f (patch) | |
tree | 7087677d0b41fb9740e6052db77ca1102376eb49 /source/blender/editors/transform | |
parent | bd7cfbc3ccf3587f2da944ce8c8dde3a23f55d76 (diff) |
[#22831] transform problem with hidden parent object
Partial fix. It now checks if selected parents are modifiable (due to the look up for base, this could get slow, but no other good way to do it).
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index a82037ead11..fa0a9f7f832 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -4371,7 +4371,11 @@ static void set_trans_object_base_flags(bContext *C, TransInfo *t) /* if parent selected, deselect */ while(parsel) { - if(parsel->flag & SELECT) break; + if(parsel->flag & SELECT) { + Base *parbase = object_in_scene(parsel, scene); + if TESTBASELIB_BGMODE(v3d, scene, parbase) + break; + } parsel= parsel->parent; } |