Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 273 vs 274 for /trunk/Source Code/Geometry/Animations/AnimationController.cpp

Diff revisions: vs.
  @@ -35,7 +35,8 @@
35 35 _transforms.clear();
36 36 // This node will delete all children recursivly
37 37 SAFE_DELETE(_skeleton);
38 - SAFE_DELETE(_boneTransformBuffer);
38 + SAFE_DELETE(_boneTransformBuffer[0]);
39 + SAFE_DELETE(_boneTransformBuffer[1]);
39 40 }
40 41
41 42 bool SceneAnimator::Init(const aiScene* pScene, U8 meshPointer){// this will build the skeleton based on the scene passed to it and CLEAR EVERYTHING
  @@ -93,9 +94,11 @@
93 94 }
94 95 }
95 96
96 - _boneTransformBuffer = GFX_DEVICE.newSB(true);
97 - _boneTransformBuffer->Create(true, false);
98 - _boneTransformBuffer->ReserveBuffer(Config::MAX_INSTANCE_COUNT, _bones.size() * sizeof(mat4<F32>));
97 + _boneTransformBuffer[0] = GFX_DEVICE.newSB(true);
98 + _boneTransformBuffer[0]->Create(true, true, Config::MAX_INSTANCE_COUNT, _bones.size() * sizeof(mat4<F32>));
99 +
100 + _boneTransformBuffer[1] = GFX_DEVICE.newSB(true);
101 + _boneTransformBuffer[1]->Create(true, true, Config::MAX_INSTANCE_COUNT, _bones.size() * sizeof(mat4<F32>));
99 102
100 103 D_PRINT_FN(Locale::get("LOAD_ANIMATIONS_END"), _bones.size());
101 104 return !_transforms.empty();
  @@ -253,4 +256,4 @@
253 256 false,
254 257 true);
255 258 return 1;
256 - }
259 + }