Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 1,109 Lines • ▼ Show 20 Lines | #undef LA_YF_PHOTON | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 276, 4)) { | if (!MAIN_VERSION_ATLEAST(bmain, 276, 4)) { | ||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "ToolSettings", "char", "gpencil_v3d_align")) { | if (!DNA_struct_elem_find(fd->filesdna, "ToolSettings", "char", "gpencil_v3d_align")) { | ||||
| ts->gpencil_v3d_align = GP_PROJECT_VIEWSPACE; | ts->gpencil_v3d_align = GP_PROJECT_VIEWSPACE; | ||||
| ts->gpencil_v2d_align = GP_PROJECT_VIEWSPACE; | ts->gpencil_v2d_align = GP_PROJECT_VIEWSPACE; | ||||
| ts->gpencil_seq_align = GP_PROJECT_VIEWSPACE; | |||||
| ts->gpencil_ima_align = GP_PROJECT_VIEWSPACE; | |||||
| } | } | ||||
| } | } | ||||
| for (bGPdata *gpd = bmain->gpencils.first; gpd; gpd = gpd->id.next) { | for (bGPdata *gpd = bmain->gpencils.first; gpd; gpd = gpd->id.next) { | ||||
| bool enabled = false; | bool enabled = false; | ||||
| /* Ensure that the datablock's onion-skinning toggle flag | /* Ensure that the datablock's onion-skinning toggle flag | ||||
| * stays in sync with the status of the actual layers | * stays in sync with the status of the actual layers | ||||
| ▲ Show 20 Lines • Show All 617 Lines • Show Last 20 Lines | |||||