Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "ED_view3d.h" | |||||
| #include "readfile.h" | #include "readfile.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| /** | /** | ||||
| * Setup rotation stabilization from ancient single track spec. | * Setup rotation stabilization from ancient single track spec. | ||||
| * Former Version of 2D stabilization used a single tracking marker to determine the rotation | * Former Version of 2D stabilization used a single tracking marker to determine the rotation | ||||
| * to be compensated. Now several tracks can contribute to rotation detection and this feature | * to be compensated. Now several tracks can contribute to rotation detection and this feature | ||||
| ▲ Show 20 Lines • Show All 1,248 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "SmokeModifierData", "float", "slice_per_voxel")) { | ||||
| smd->domain->slice_per_voxel = 5.0f; | smd->domain->slice_per_voxel = 5.0f; | ||||
| smd->domain->slice_depth = 0.5f; | smd->domain->slice_depth = 0.5f; | ||||
| smd->domain->display_thickness = 1.0f; | smd->domain->display_thickness = 1.0f; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "View3D", "ListBase", "display_layers")) { | |||||
| bScreen *screen; | |||||
| for (screen = main->screen.first; screen; screen = screen->id.next) { | |||||
| ScrArea *sa; | |||||
| for (sa = screen->areabase.first; sa; sa = sa->next) { | |||||
| SpaceLink *sl; | |||||
| for (sl = sa->spacedata.first; sl; sl = sl->next) { | |||||
| if (sl->spacetype == SPACE_VIEW3D) { | |||||
| View3D *v3d = (View3D *)sl; | |||||
| ED_view3d_display_layers_init(v3d); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||