Skip to content

Commit 3d8a8f4

Browse files
committed
Merge pull request BabylonJS#1145 from nockawa/engine2d
markAsDirty changed back for compliance
2 parents 6d85775 + f8fa0d7 commit 3d8a8f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Canvas2d/babylon.smartPropertyPrim.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285

286286
private static propChangedInfo = new PropertyChangedInfo();
287287

288-
public markAsDirty(propertyName: string, oldValue: any) {
288+
public markAsDirty(propertyName: string) {
289289
let i = propertyName.indexOf(".");
290290
if (i !== -1) {
291291
propertyName = propertyName.substr(0, i);
@@ -297,7 +297,7 @@
297297
}
298298

299299
var newValue = this[propertyName];
300-
this._handlePropChanged(oldValue, newValue, propertyName, propInfo, propInfo.typeLevelCompare);
300+
this._handlePropChanged(undefined, newValue, propertyName, propInfo, propInfo.typeLevelCompare);
301301
}
302302

303303
private _handlePropChanged<T>(curValue: T, newValue: T, propName: string, propInfo: Prim2DPropInfo, typeLevelCompare: boolean) {

0 commit comments

Comments
 (0)