Skip to content

Commit

Permalink
fixed: properties were not being updated when chenged from inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Dec 10, 2021
1 parent b34b4a7 commit 583f7c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editor-view/properties/inspector/properties-inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export class PropertiesInspector extends Inspector {
Editor.data.onPropertyChanged.add(this.onPropertyChanged, this);
}

private onPropertyChanged(origin: DataOrigin, property: string, value: any) {
if (origin !== DataOrigin.INSPECTOR) {
private onPropertyChanged(origin: DataOrigin, property: string, value: any, object: PIXI.DisplayObject) {
if (origin === DataOrigin.INSPECTOR) {
object[property] = value;
} else {
this.editors[property]?.propertyChangedOutsideInspector(value);
}
}
Expand Down

0 comments on commit 583f7c1

Please sign in to comment.