Browse Source

Added some documentation and PG links in the code

David Catuhe 9 years ago
parent
commit
3a9be7911e

+ 1 - 1
Tools/Gulp/config.json

@@ -192,7 +192,7 @@
       "../../src/tools/hdr/babylon.tools.hdr.js",
       "../../src/tools/hdr/babylon.tools.pmremGenerator.js",
       "../../src/materials/textures/babylon.hdrcubetexture.js",
-      "../../debug/babylon.skeletonViewer.js"
+      "../../src/debug/babylon.skeletonViewer.js"
     ]
   }
 }

File diff suppressed because it is too large
+ 1148 - 1145
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


File diff suppressed because it is too large
+ 138 - 0
dist/preview release/babylon.max.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.noworker.js


+ 1 - 0
dist/preview release/what's new.md

@@ -7,6 +7,7 @@
     - SerializationHelper for complex classes using TypeScript decorators  ([deltakosh](https://github.com/deltakosh))
     - StandardMaterial now supports Parallax and Parallax Occlusion Mapping ([nockawa](https://github.com/nockawa))
     - Animations blending. See [demo here](http://www.babylonjs-playground.com/#2BLI9T#3). More [info here](NEED DOC!) ([deltakosh](https://github.com/deltakosh))
+    - New debuger tool: SkeletonViewer. See [demo here](Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8) (Adam & [deltakosh](https://github.com/deltakosh))
   - **Updates**
     - Support for Layer.alphaTest ([deltakosh](https://github.com/deltakosh))
     - New scene.pointerDownPredicate, scene.pointerMovePredicate, scene.pointerUpPredicate to define your own predicates for meshes picking selection ([deltakosh](https://github.com/deltakosh))

+ 4 - 1
src/Debug/babylon.skeletonViewer.js

@@ -2,6 +2,9 @@ var BABYLON;
 (function (BABYLON) {
     var Debug;
     (function (Debug) {
+        /**
+        * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
+        */
         var SkeletonViewer = (function () {
             function SkeletonViewer(skeleton, mesh, scene, autoUpdateBonesMatrices, renderingGroupId) {
                 if (autoUpdateBonesMatrices === void 0) { autoUpdateBonesMatrices = true; }
@@ -104,11 +107,11 @@ var BABYLON;
                 if (!this._debugMesh) {
                     this._debugMesh = BABYLON.MeshBuilder.CreateLineSystem(null, { lines: this._debugLines, updatable: true }, this._scene);
                     this._debugMesh.renderingGroupId = this.renderingGroupId;
-                    this._debugMesh.color = this.color;
                 }
                 else {
                     BABYLON.MeshBuilder.CreateLineSystem(null, { lines: this._debugLines, updatable: true, instance: this._debugMesh }, this._scene);
                 }
+                this._debugMesh.color = this.color;
             };
             SkeletonViewer.prototype._updateBoneMatrix = function (bone) {
                 if (bone.getParent()) {

+ 4 - 1
src/Debug/babylon.skeletonViewer.ts

@@ -1,4 +1,7 @@
 module BABYLON.Debug {
+    /**
+    * Demo available here: http://www.babylonjs-playground.com/#1BZJVJ#8
+    */
     export class SkeletonViewer {
         public color: Color3 = Color3.White();
 
@@ -107,10 +110,10 @@
             if (!this._debugMesh) {
                 this._debugMesh = BABYLON.MeshBuilder.CreateLineSystem(null, { lines: this._debugLines, updatable: true }, this._scene);
                 this._debugMesh.renderingGroupId = this.renderingGroupId;
-                this._debugMesh.color = this.color;
             } else {
                 BABYLON.MeshBuilder.CreateLineSystem(null, { lines: this._debugLines, updatable: true, instance: this._debugMesh }, this._scene);
             }
+            this._debugMesh.color = this.color;
         }
 
         private _updateBoneMatrix(bone: Bone) {