Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "readfile.h" | #include "readfile.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "VP_engine_API.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 | ||||
| * is enabled by the MovieTrackingTrack#flag on a per track base. | * is enabled by the MovieTrackingTrack#flag on a per track base. | ||||
| */ | */ | ||||
| static void migrate_single_rot_stabilization_track_settings(MovieTrackingStabilization *stab) | static void migrate_single_rot_stabilization_track_settings(MovieTrackingStabilization *stab) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,245 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "SmokeModifierData", "float", "slice_per_voxel")) { | ||||
| 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", "ViewportEngine", "*viewport_engine")) { | |||||
| for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) { | |||||
| for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | |||||
| for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { | |||||
| if (sl->spacetype == SPACE_VIEW3D) { | |||||
| View3D *v3d = (View3D *)sl; | |||||
| v3d->viewport_engine = VP_engine_create(ViewportEngineTypes.first); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||