Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/space_outliner.c
| Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | |||||
| static SpaceLink *outliner_create(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) | static SpaceLink *outliner_create(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) | ||||
| { | { | ||||
| ARegion *region; | ARegion *region; | ||||
| SpaceOutliner *space_outliner; | SpaceOutliner *space_outliner; | ||||
| space_outliner = MEM_callocN(sizeof(SpaceOutliner), "initoutliner"); | space_outliner = MEM_callocN(sizeof(SpaceOutliner), "initoutliner"); | ||||
| space_outliner->spacetype = SPACE_OUTLINER; | space_outliner->spacetype = SPACE_OUTLINER; | ||||
| space_outliner->filter_id_type = ID_GR; | space_outliner->filter_id_type = ID_GR; | ||||
| space_outliner->show_restrict_flags = SO_RESTRICT_ENABLE | SO_RESTRICT_HIDE; | space_outliner->show_restrict_flags = SO_RESTRICT_ENABLE | SO_RESTRICT_HIDE | SO_RESTRICT_RENDER; | ||||
| space_outliner->outlinevis = SO_VIEW_LAYER; | space_outliner->outlinevis = SO_VIEW_LAYER; | ||||
| space_outliner->sync_select_dirty |= WM_OUTLINER_SYNC_SELECT_FROM_ALL; | space_outliner->sync_select_dirty |= WM_OUTLINER_SYNC_SELECT_FROM_ALL; | ||||
| space_outliner->flag = SO_SYNC_SELECT | SO_MODE_COLUMN; | space_outliner->flag = SO_SYNC_SELECT | SO_MODE_COLUMN; | ||||
| /* header */ | /* header */ | ||||
| region = MEM_callocN(sizeof(ARegion), "header for outliner"); | region = MEM_callocN(sizeof(ARegion), "header for outliner"); | ||||
| BLI_addtail(&space_outliner->regionbase, region); | BLI_addtail(&space_outliner->regionbase, region); | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||