mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Reference fixes
This commit is contained in:
@@ -26,15 +26,17 @@ namespace GlitchyEngine.Renderer.Animation
|
||||
|
||||
public class SkeletonPose
|
||||
{
|
||||
public Skeleton Skeleton ~ _.ReleaseRef();
|
||||
private Skeleton _skeleton ~ _.ReleaseRef();
|
||||
public JointPose[] LocalPose ~ delete _;
|
||||
public Matrix[] GlobalPose ~ delete _;
|
||||
|
||||
public Skeleton Skeleton => _skeleton;
|
||||
|
||||
public this(Skeleton skeleton)
|
||||
{
|
||||
Skeleton = skeleton;
|
||||
_skeleton = skeleton..AddRef();
|
||||
|
||||
int jointCount = Skeleton.Joints.Count;
|
||||
int jointCount = _skeleton.Joints.Count;
|
||||
|
||||
LocalPose = new JointPose[jointCount];
|
||||
GlobalPose = new Matrix[jointCount];
|
||||
|
||||
Reference in New Issue
Block a user