|
@@ -1100,7 +1100,7 @@ export class Control {
|
|
|
protected invalidateRect(left: number, top: number, right: number, bottom: number) {
|
|
|
if (this.host && this.host.useInvalidateRectOptimization) {
|
|
|
// Compute AABB of transformed container box (eg. to handle rotation and scaling)
|
|
|
- var rectanglePoints = BABYLON.Polygon.Rectangle(left, top, right, bottom);
|
|
|
+ var rectanglePoints = Polygon.Rectangle(left, top, right, bottom);
|
|
|
var min = new Vector2(Number.MAX_VALUE, Number.MAX_VALUE);
|
|
|
var max = new Vector2(0, 0);
|
|
|
for (var i = 0; i < 4; i++) {
|
|
@@ -1256,7 +1256,7 @@ export class Control {
|
|
|
while (this._rebuildLayout && rebuildCount < 3);
|
|
|
|
|
|
if (rebuildCount >= 3) {
|
|
|
- BABYLON.Tools.Error(`Layout cycle detected in GUI (Control name=${this.name}, uniqueId=${this.uniqueId})`);
|
|
|
+ Logger.Error(`Layout cycle detected in GUI (Control name=${this.name}, uniqueId=${this.uniqueId})`);
|
|
|
}
|
|
|
|
|
|
context.restore();
|