Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.c
| Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | static eOLDrawState tree_element_active_renderlayer( | ||||
| Scene *sce; | Scene *sce; | ||||
| /* paranoia check */ | /* paranoia check */ | ||||
| if (te->idcode != ID_SCE) | if (te->idcode != ID_SCE) | ||||
| return OL_DRAWSEL_NONE; | return OL_DRAWSEL_NONE; | ||||
| sce = (Scene *)tselem->id; | sce = (Scene *)tselem->id; | ||||
| if (set != OL_SETSEL_NONE) { | if (set != OL_SETSEL_NONE) { | ||||
| sce->r.actlay = tselem->nr; | sce->active_layer = tselem->nr; | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, sce); | WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, sce); | ||||
| } | } | ||||
| else { | else { | ||||
| return sce->r.actlay == tselem->nr; | return sce->active_layer == tselem->nr; | ||||
| } | } | ||||
| return OL_DRAWSEL_NONE; | return OL_DRAWSEL_NONE; | ||||
| } | } | ||||
| /** | /** | ||||
| * Select object tree: | * Select object tree: | ||||
| * CTRL+LMB: Select/Deselect object and all cildren | * CTRL+LMB: Select/Deselect object and all cildren | ||||
| * CTRL+SHIFT+LMB: Add/Remove object and all children | * CTRL+SHIFT+LMB: Add/Remove object and all children | ||||
| ▲ Show 20 Lines • Show All 1,059 Lines • Show Last 20 Lines | |||||