Revert "Move versioning into the 'this always runs' block until we land the PR"

This reverts commit 229a84ef90.
Did not mean to push
This commit is contained in:
Weizhen Huang
2025-09-16 18:03:27 +02:00
parent db3fee09b2
commit f391b72875

View File

@@ -110,6 +110,9 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
FROM_DEFAULT_V4_UCHAR(space_view3d.asset_shelf.back);
FROM_DEFAULT_V4_UCHAR(space_view3d.asset_shelf.header_back);
}
if (!USER_VERSION_ATLEAST(400, 24)) {
memcpy(btheme->tarm, &U_theme_default.tarm, sizeof(*btheme->tarm)*20);
}
if (!USER_VERSION_ATLEAST(400, 24)) {
FROM_DEFAULT_V4_UCHAR(tui.wcol_list_item.inner_sel);
@@ -378,10 +381,6 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
*
* \note Keep this message at the bottom of the function.
*/
{
/* Keep this block, even when empty. */
memcpy(btheme->tarm, &U_theme_default.tarm, sizeof(*btheme->tarm) * 20);
}
#undef FROM_DEFAULT_V4_UCHAR