Tool System: store the fallback tool for re-use

The fallback tool was run-time only data,
now it's stored in the blend file.
This commit is contained in:
2020-01-03 12:26:36 +11:00
parent a854840e76
commit a8ce9a143a
5 changed files with 34 additions and 30 deletions

View File

@@ -366,7 +366,7 @@ void WM_toolsystem_ref_set_from_runtime(struct bContext *C,
}
}
if (use_fallback_keymap == false) {
tref->runtime->idname_fallback[0] = '\0';
tref->idname_fallback[0] = '\0';
tref->runtime->keymap_fallback[0] = '\0';
}