Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | if (sa->spacetype == SPACE_IMAGE) { | ||||
| if (STREQ(workspace_name, "UV Editing")) { | if (STREQ(workspace_name, "UV Editing")) { | ||||
| SpaceImage *sima = sa->spacedata.first; | SpaceImage *sima = sa->spacedata.first; | ||||
| if (sima->mode == SI_MODE_VIEW) { | if (sima->mode == SI_MODE_VIEW) { | ||||
| sima->mode = SI_MODE_UV; | sima->mode = SI_MODE_UV; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (sa->spacetype == SPACE_ACTION) { | else if (sa->spacetype == SPACE_ACTION) { | ||||
| /* Show marker lines, hide channels and collapse summary in timelines. */ | /* Show markers region, hide channels and collapse summary in timelines. */ | ||||
| SpaceAction *saction = sa->spacedata.first; | SpaceAction *saction = sa->spacedata.first; | ||||
| saction->flag |= SACTION_SHOW_MARKER_LINES; | saction->flag |= SACTION_SHOW_MARKERS; | ||||
| if (saction->mode == SACTCONT_TIMELINE) { | if (saction->mode == SACTCONT_TIMELINE) { | ||||
| saction->ads.flag |= ADS_FLAG_SUMMARY_COLLAPSED; | saction->ads.flag |= ADS_FLAG_SUMMARY_COLLAPSED; | ||||
| for (ARegion *ar = sa->regionbase.first; ar; ar = ar->next) { | for (ARegion *ar = sa->regionbase.first; ar; ar = ar->next) { | ||||
| if (ar->regiontype == RGN_TYPE_CHANNELS) { | if (ar->regiontype == RGN_TYPE_CHANNELS) { | ||||
| ar->flag |= RGN_FLAG_HIDDEN; | ar->flag |= RGN_FLAG_HIDDEN; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (sa->spacetype == SPACE_GRAPH) { | else if (sa->spacetype == SPACE_GRAPH) { | ||||
| SpaceGraph *sipo = sa->spacedata.first; | SpaceGraph *sipo = sa->spacedata.first; | ||||
| sipo->flag |= SIPO_MARKER_LINES; | sipo->flag |= SIPO_SHOW_MARKERS; | ||||
| } | } | ||||
| else if (sa->spacetype == SPACE_NLA) { | else if (sa->spacetype == SPACE_NLA) { | ||||
| SpaceNla *snla = sa->spacedata.first; | SpaceNla *snla = sa->spacedata.first; | ||||
| snla->flag |= SNLA_SHOW_MARKER_LINES; | snla->flag |= SNLA_SHOW_MARKERS; | ||||
| } | |||||
| else if (sa->spacetype == SPACE_SEQ) { | |||||
| SpaceSeq *seq = sa->spacedata.first; | |||||
| seq->flag |= SEQ_SHOW_MARKERS; | |||||
| } | } | ||||
| else if (sa->spacetype == SPACE_TEXT) { | else if (sa->spacetype == SPACE_TEXT) { | ||||
| /* Show syntax and line numbers in Script workspace text editor. */ | /* Show syntax and line numbers in Script workspace text editor. */ | ||||
| SpaceText *stext = sa->spacedata.first; | SpaceText *stext = sa->spacedata.first; | ||||
| stext->showsyntax = true; | stext->showsyntax = true; | ||||
| stext->showlinenrs = true; | stext->showlinenrs = true; | ||||
| } | } | ||||
| else if (sa->spacetype == SPACE_VIEW3D) { | else if (sa->spacetype == SPACE_VIEW3D) { | ||||
| ▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines | |||||