forked from bartvdbraak/blender
[#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).
This commit is contained in:
parent
bd7cfbc3cc
commit
4959f424b8
@ -4371,7 +4371,11 @@ static void set_trans_object_base_flags(bContext *C, TransInfo *t)
|
|||||||
|
|
||||||
/* if parent selected, deselect */
|
/* if parent selected, deselect */
|
||||||
while(parsel) {
|
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;
|
parsel= parsel->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user