diff --git a/cocos/3d/assets/index.js b/cocos/3d/assets/index.js index 539ad15695..6393ed3b4f 100644 --- a/cocos/3d/assets/index.js +++ b/cocos/3d/assets/index.js @@ -37,4 +37,3 @@ export { default as WebAudioClip } from "./web-audio-clip"; export { default as WxGameAudioClip } from "./wx-game-audio-clip"; export { PhysicsMaterial } from './physics/material'; -cc.PhysicsMaterial = PhysicsMaterial; \ No newline at end of file diff --git a/cocos/3d/assets/physics/material.ts b/cocos/3d/assets/physics/material.ts index b44256eab7..accaa91ba0 100644 --- a/cocos/3d/assets/physics/material.ts +++ b/cocos/3d/assets/physics/material.ts @@ -52,3 +52,4 @@ export class PhysicsMaterial extends Asset { return this._cannonMaterial; } } +cc.PhysicsMaterial = PhysicsMaterial; diff --git a/tslint.json b/tslint.json index 1ba95e26a4..f1676c13ea 100644 --- a/tslint.json +++ b/tslint.json @@ -8,7 +8,9 @@ "quotemark": [ true, "single" ], "no-console": false, "space-before-function-paren": true, - "max-classes-per-file": false + "max-classes-per-file": false, + "variable-name": false, + "object-literal-sort-keys": false }, "rulesDirectory": [] -} \ No newline at end of file +}