Cleanup: rename bone-select to xray
[blender.git] / source / blender / blenloader / intern / versioning_280.c
index a28b4ae77844ddde12dbe7d9ccee15d27aa08c31..d0e791fc1d66e4ab37157190b87c5e74c264575c 100644 (file)
@@ -1727,13 +1727,13 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                                }
                        }
                }
-               if (!DNA_struct_elem_find(fd->filesdna, "View3DOverlay", "float", "bone_select_alpha")) {
+               if (!DNA_struct_elem_find(fd->filesdna, "View3DOverlay", "float", "xray_alpha_bone")) {
                        for (bScreen *screen = bmain->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->overlay.bone_select_alpha = 0.5f;
+                                                       v3d->overlay.xray_alpha_bone = 0.5f;
                                                }
                                        }
                                }
@@ -2152,7 +2152,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                                        for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
                                                if (sl->spacetype == SPACE_VIEW3D) {
                                                        View3D *v3d = (View3D *)sl;
-                                                       v3d->shading.flag |= V3D_SHADING_XRAY_WIREFRAME;
+                                                       v3d->shading.flag |= V3D_SHADING_XRAY_BONE;
                                                }
                                        }
                                }