浏览代码

add undo for control rig handles

/main
Lasse Jon Fuglsang Pedersen 5 年前
当前提交
a3831182
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 10
      Editor/SnappersHeadRendererEditor.cs

10
Editor/SnappersHeadRendererEditor.cs


// break;
//}
EditorGUI.BeginChangeCheck();
t.localPosition = pos;
t.localRotation = rot;
if (EditorGUI.EndChangeCheck())
{
Undo.RecordObject(t, "Move control rig handle");
t.localPosition = pos;
t.localRotation = rot;
}
}
}
}

正在加载...
取消
保存