private void SetFirstPersonSkeleton(NiAVObject node, bool is1stPersonCam, bool shouldShow) { if (FirstPersonSkeleton != null) { FirstPersonSkeleton.DecRef(); } FirstPersonSkeleton = node; if (FirstPersonSkeleton != null) { FirstPersonSkeleton.IncRef(); } }
internal void AddDisable(NiAVObject obj) { if (obj == null) { return; } obj.IncRef(); if (this.ShouldObjectBeDisabled) { SetEnabled(obj, false); } lock (this.Locker) { this.Disabled.Add(obj); } }
internal void AddUnscale(NiAVObject obj) { if (obj == null) { return; } obj.IncRef(); var orig = obj.LocalTransform.Scale; if (orig == UnscaleAmount) { orig = 1.0f; } if (ShouldObjectBeUnscaled) { SetScale(obj, UnscaleAmount, true); } lock (Locker) { Unscaled.Add(new Tuple <NiAVObject, float>(obj, orig)); } }
internal void AddDisable(NiAVObject obj) { if (obj == null) { return; } obj.IncRef(); var reset = 0; if (ShouldObjectBeDisabled) { reset = IsEnabled(obj) ? 1 : -1; if (reset > 0) { SetEnabled(obj, false); } } lock (Locker) { Disabled.Add(new Tuple <NiAVObject, int>(obj, reset)); } }