Cleanup: fix unused variable warning

Caused by e7ba91a6f3
This commit is contained in:
Germano Cavalcante 2023-10-02 18:23:28 -03:00
parent 85580c5835
commit ba3f8e957f

@ -1565,7 +1565,7 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 400, 30)) { if (!MAIN_VERSION_FILE_ATLEAST(bmain, 400, 30)) {
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
ToolSettings *ts = scene->toolsettings; ToolSettings *ts = scene->toolsettings;
enum { IS_DEFAULT = 0, IS_UV, IS_NODE, IS_ANIM } is_node; enum { IS_DEFAULT = 0, IS_UV, IS_NODE, IS_ANIM };
auto versioning_snap_to = [](short snap_to_old, int type) { auto versioning_snap_to = [](short snap_to_old, int type) {
eSnapMode snap_to_new = SCE_SNAP_TO_NONE; eSnapMode snap_to_new = SCE_SNAP_TO_NONE;
if (snap_to_old & (1 << 0)) { if (snap_to_old & (1 << 0)) {