Tools for avatars that handle properties like PhysBone are breaking! (Such as Avatar Menu Creator for MA)
// before
public struct PermissionFilter
{
public PermissionFilter(bool value)
{
allowSelf = value;
allowOthers = value;
}
}
// 3.9.1-beta.1
public class PermissionFilter
{
public PermissionFilter(bool value, DynamicsUsageFlags contentTypes)
{
allowSelf = value;
allowOthers = value;
this.contentTypes = contentTypes;
}
}
// so it breaks!
var f = new PermissionFilter();
var f2 = new PermissionFilter(true);
// Suggestions for maintaining compatibility
// 3.9.1-beta.2 or some
public class PermissionFilter
{
public PermissionFilter(bool value, DynamicsUsageFlags contentTypes)
{
allowSelf = value;
allowOthers = value;
this.contentTypes = contentTypes;
}
// add this
public PermissionFilter(bool value = true) : this(value, DynamicsUsageFlags.Everything) { }
}