Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_draw.c
| Context not available. | |||||
| Object *ob; | Object *ob; | ||||
| for (ob = bmain->object.first; ob; ob = ob->id.next) { | for (ob = bmain->object.first; ob; ob = ob->id.next) { | ||||
| if (BKE_object_is_child_recursive(ob_parent, ob)) { | if (BKE_object_is_child_recursive(ob_parent, ob)) { | ||||
| if (state) { | if ((flag == OB_RESTRICT_SELECT) || !(ob->restrictflag & OB_RESTRICT_SELECT)) { | ||||
| ob->restrictflag |= flag; | if (state) { | ||||
| if (deselect) { | ob->restrictflag |= flag; | ||||
| ED_base_object_select(BKE_scene_base_find(scene, ob), BA_DESELECT); | if (deselect) { | ||||
| ED_base_object_select(BKE_scene_base_find(scene, ob), BA_DESELECT); | |||||
| } | |||||
| } | |||||
| else { | |||||
| ob->restrictflag &= ~flag; | |||||
| } | } | ||||
| } | |||||
| else { | |||||
| ob->restrictflag &= ~flag; | |||||
| } | } | ||||
| if (rnapropname) { | if (rnapropname) { | ||||
| Context not available. | |||||