Gizmo: value2d utility to adjust operator values

This allows any operator to interactively redo without having to
manually make each operator modal.
This commit is contained in:
2018-09-13 09:04:50 +10:00
parent 26a6e58e9a
commit 1f1802307f
9 changed files with 357 additions and 2 deletions

View File

@@ -176,7 +176,9 @@ static void toolsystem_ref_link(bContext *C, WorkSpace *workspace, bToolRef *tre
const char *idname = tref_rt->gizmo_group;
wmGizmoGroupType *gzgt = WM_gizmogrouptype_find(idname, false);
if (gzgt != NULL) {
WM_gizmo_group_type_ensure_ptr(gzgt);
if ((gzgt->flag & WM_GIZMOGROUPTYPE_TOOL_INIT) == 0) {
WM_gizmo_group_type_ensure_ptr(gzgt);
}
}
else {
CLOG_WARN(WM_LOG_TOOLS, "'%s' widget not found", idname);