Commit 20a02e96 authored by rockyl's avatar rockyl

修复scale找不到的问题

parent d6398ae8
......@@ -11,7 +11,6 @@
"rollup-plugin-progress": "^1.1.2"
},
"devDependencies": {
"dts-bundle": "^0.7.3",
"dts-bundle-generator": "^4.3.0",
"glob": "^7.1.6",
"rollup-plugin-commonjs": "^10.1.0",
......@@ -22,7 +21,6 @@
"typescript": "^2.7.2"
},
"scripts": {
"declare": "node scripts/declare.js src/index.ts",
"dev": "rollup -c -m -w",
"build": "rollup -c -o dist/engine.js",
"build:prod": "rollup -c -o dist/engine.min.js --environment BUILD:production",
......
......@@ -510,6 +510,9 @@ export class DisplayObject extends EventDispatcher {
* @member {Point|ObservablePoint}
*/
get scale() {
if(this.destroyed){
return 1;
}
return this.transform.scale;
}
......
This diff is collapsed.
......@@ -151,7 +151,6 @@ export class GameStage extends Node {
start() {
const {options: {entrySceneView,},} = this._config;
setTimeout(async () => {
let sceneEntry = await this.instantiateView(entrySceneView);
if (sceneEntry) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment