Revise update clone type to update depth.
This commit is contained in:
@@ -14,8 +14,9 @@ namespace Cryville.Crtr.Components {
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the property.</param>
|
||||
/// <param name="property">The property.</param>
|
||||
protected void SubmitProperty(string name, PdtOperator property, int uct = 1) {
|
||||
Properties.Add(IdentifierManager.SharedInstance.Request(name), new SkinProperty(property, uct));
|
||||
/// <param name="depth">The maximum depth to update the property.</param>
|
||||
protected void SubmitProperty(string name, PdtOperator property, int depth = 1) {
|
||||
Properties.Add(IdentifierManager.SharedInstance.Request(name), new SkinProperty(property, depth));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -30,10 +31,10 @@ namespace Cryville.Crtr.Components {
|
||||
}
|
||||
public struct SkinProperty {
|
||||
public PdtOperator Operator { get; set; }
|
||||
public int UpdateCloneType { get; set; }
|
||||
public SkinProperty(PdtOperator op, int uct = 1) {
|
||||
public int UpdateDepth { get; set; }
|
||||
public SkinProperty(PdtOperator op, int depth = 1) {
|
||||
Operator = op;
|
||||
UpdateCloneType = uct;
|
||||
UpdateDepth = depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user