浏览代码

Merge pull request #4039 from BabylonJS/EngineComments

Engine comments
David Catuhe 7 年之前
父节点
当前提交
4b2b92f5ba

+ 9 - 0
Tools/Gulp/gulp-validateTypedoc.js

@@ -507,6 +507,15 @@ Validate.prototype.validateNaming = function(parent, node) {
     // Ignore Naming Tag Check
     if (Validate.hasTag(node, 'ignoreNaming')) {
         return;
+    } else {
+        if (node.signatures) {
+            for (var index = 0; index < node.signatures.length; index++) {
+                var signature = node.signatures[index];
+                if (Validate.hasTag(signature, 'ignoreNaming')) {
+                    return;
+                }
+            }
+        }
     }
 
     if (node.inheritedFrom) {

文件差异内容过多而无法显示
+ 7064 - 5930
dist/preview release/babylon.d.ts


文件差异内容过多而无法显示
+ 0 - 3469
dist/preview release/typedocValidationBaseline.json


+ 1 - 1
src/Cameras/Inputs/babylon.arcRotateCameraPointersInput.ts

@@ -114,7 +114,7 @@ module BABYLON {
                     //but emptying completly pointers collection is required to fix a bug on iPhone : 
                     //when changing orientation while pinching camera, one pointer stay pressed forever if we don't release all pointers  
                     //will be ok to put back pointers.remove(evt.pointerId); when iPhone bug corrected
-                    if (engine.badOS) {
+                    if (engine._badOS) {
                         pointA = pointB = null;
                     }
                     else {

文件差异内容过多而无法显示
+ 1292 - 96
src/Engine/babylon.engine.ts


+ 1 - 1
src/Tools/babylon.dds.ts

@@ -479,7 +479,7 @@
                             dataLength = width * height * 4;
                             var floatArray: Nullable<ArrayBufferView> = null;
 
-                            if (engine.badOS || engine.badDesktopOS || (!engine.getCaps().textureHalfFloat && !engine.getCaps().textureFloat)) { // Required because iOS has many issues with float and half float generation
+                            if (engine._badOS || engine._badDesktopOS || (!engine.getCaps().textureHalfFloat && !engine.getCaps().textureFloat)) { // Required because iOS has many issues with float and half float generation
                                 if (bpp === 128) {
                                     floatArray = DDSTools._GetFloatAsUIntRGBAArrayBuffer(width, height, dataOffset, dataLength, arrayBuffer, i);
                                 }