Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.cc
| Show All 28 Lines | |||||
| #include "DNA_genfile.h" | #include "DNA_genfile.h" | ||||
| #include "DNA_gpencil_modifier_types.h" | #include "DNA_gpencil_modifier_types.h" | ||||
| #include "DNA_lineart_types.h" | #include "DNA_lineart_types.h" | ||||
| #include "DNA_listBase.h" | #include "DNA_listBase.h" | ||||
| #include "DNA_mask_types.h" | #include "DNA_mask_types.h" | ||||
| #include "DNA_material_types.h" | #include "DNA_material_types.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_movieclip_types.h" | |||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "DNA_text_types.h" | #include "DNA_text_types.h" | ||||
| #include "DNA_tracking_types.h" | |||||
| #include "DNA_workspace_types.h" | #include "DNA_workspace_types.h" | ||||
| #include "BKE_action.h" | #include "BKE_action.h" | ||||
| #include "BKE_anim_data.h" | #include "BKE_anim_data.h" | ||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_asset.h" | #include "BKE_asset.h" | ||||
| #include "BKE_attribute.h" | #include "BKE_attribute.h" | ||||
| ▲ Show 20 Lines • Show All 3,647 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(bmain, 305, 1)) { | ||||
| /* Reset edge visibility flag, since the base is meant to be "true" for original meshes. */ | /* Reset edge visibility flag, since the base is meant to be "true" for original meshes. */ | ||||
| LISTBASE_FOREACH (Mesh *, mesh, &bmain->meshes) { | LISTBASE_FOREACH (Mesh *, mesh, &bmain->meshes) { | ||||
| for (MEdge &edge : mesh->edges_for_write()) { | for (MEdge &edge : mesh->edges_for_write()) { | ||||
| edge.flag |= ME_EDGEDRAW; | edge.flag |= ME_EDGEDRAW; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 305, 2)) { | |||||
| LISTBASE_FOREACH (MovieClip *, clip, &bmain->movieclips) { | |||||
| MovieTracking *tracking = &clip->tracking; | |||||
| const float frame_center_x = ((float)clip->lastsize[0]) / 2; | |||||
| const float frame_center_y = ((float)clip->lastsize[1]) / 2; | |||||
| tracking->camera.principal_point[0] = (tracking->camera.principal_legacy[0] - | |||||
| frame_center_x) / | |||||
| frame_center_x; | |||||
| tracking->camera.principal_point[1] = (tracking->camera.principal_legacy[1] - | |||||
| frame_center_y) / | |||||
| frame_center_y; | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| } | } | ||||
| } | } | ||||