|
@@ -135,6 +135,9 @@ export class SGraphyItem extends SObject {
|
|
|
*/
|
|
|
constructor(parent: SGraphyItem | null = null) {
|
|
|
super();
|
|
|
+ if (parent) {
|
|
|
+ this.parent = parent;
|
|
|
+ }
|
|
|
} // Function constructor()
|
|
|
|
|
|
/**
|
|
@@ -198,9 +201,9 @@ export class SGraphyItem extends SObject {
|
|
|
* 更新Item
|
|
|
*/
|
|
|
update(): void {
|
|
|
- if(null != this.scene) {
|
|
|
+ if (null != this.scene) {
|
|
|
const view = this.scene.view;
|
|
|
- if(null != view) {
|
|
|
+ if (null != view) {
|
|
|
view.update();
|
|
|
}
|
|
|
}
|