Make the output type of a property source read-only.
This commit is contained in:
@@ -133,8 +133,8 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
public class SkinContext {
|
||||
public Transform Transform { get; private set; }
|
||||
public Dictionary<int, PropSrc.Arbitrary> PropSrcs { get; private set; }
|
||||
public SkinContext(Transform transform, Dictionary<int, PropSrc.Arbitrary> propSrcs = null) {
|
||||
public Dictionary<int, PropSrc> PropSrcs { get; private set; }
|
||||
public SkinContext(Transform transform, Dictionary<int, PropSrc> propSrcs = null) {
|
||||
Transform = transform;
|
||||
PropSrcs = propSrcs;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ namespace Cryville.Crtr {
|
||||
WriteTransform = newctx.Transform;
|
||||
}
|
||||
else {
|
||||
ReadContext = newctx;
|
||||
ReadContext = newctx;
|
||||
WriteTransform = newctx.Transform;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user