Selaa lähdekoodia

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 5 vuotta sitten
vanhempi
commit
16ac4cdb5a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/Engines/Processors/shaderCodeInliner.ts

+ 2 - 2
src/Engines/Processors/shaderCodeInliner.ts

@@ -11,7 +11,7 @@ interface IInlineFunctionDescr {
 */
 */
 export class ShaderCodeInliner {
 export class ShaderCodeInliner {
 
 
-    static readonly RegexpFindFunctionNameAndType = /((\s+?)(\w+)\s+(\w+)\s*?)$/;
+    private static readonly _RegexpFindFunctionNameAndType = /((\s+?)(\w+)\s+(\w+)\s*?)$/;
 
 
     private _sourceCode: string;
     private _sourceCode: string;
     private _functionDescr: IInlineFunctionDescr[];
     private _functionDescr: IInlineFunctionDescr[];
@@ -73,7 +73,7 @@ export class ShaderCodeInliner {
                 continue;
                 continue;
             }
             }
 
 
-            const funcNameMatch = ShaderCodeInliner.RegexpFindFunctionNameAndType.exec(this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex));
+            const funcNameMatch = ShaderCodeInliner._RegexpFindFunctionNameAndType.exec(this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex));
             if (!funcNameMatch) {
             if (!funcNameMatch) {
                 if (this.debug) {
                 if (this.debug) {
                     console.warn(`Could not extract the name/type of the function from: ${this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex)}`);
                     console.warn(`Could not extract the name/type of the function from: ${this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex)}`);