Fix the recycle of RMV.
This commit is contained in:
@@ -14,6 +14,10 @@ namespace Cryville.Crtr.Event {
|
||||
protected override RealtimeMotionValue Construct() {
|
||||
return new RealtimeMotionValue().Init(_reg.InitValue);
|
||||
}
|
||||
protected override void Reset(RealtimeMotionValue obj) {
|
||||
base.Reset(obj);
|
||||
obj.ReturnAllRelativeNodes();
|
||||
}
|
||||
}
|
||||
readonly IntKeyedDictionary<ObjectPool<RealtimeMotionValue>> m_buckets;
|
||||
protected override IReadOnlyDictionary<int, ObjectPool<RealtimeMotionValue>> Buckets { get { return m_buckets; } }
|
||||
|
Reference in New Issue
Block a user