Merge pull request #12567 from elisa-lj11/RC65-update

Added fixed log spam undefined error to RC65
This commit is contained in:
John Conklin II 2018-03-06 12:40:28 -08:00 committed by GitHub
commit 9294ae0dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1322,8 +1322,9 @@ SelectionDisplay = (function() {
isActiveTool(handleScaleRTFCube) || isActiveTool(handleStretchXSphere) ||
isActiveTool(handleStretchYSphere) || isActiveTool(handleStretchZSphere));
var showOutlineForZone = (SelectionManager.selections.length === 1 &&
SelectionManager.savedProperties[SelectionManager.selections[0]].type === "Zone");
var showOutlineForZone = (SelectionManager.selections.length === 1 &&
typeof SelectionManager.savedProperties[SelectionManager.selections[0]] !== "undefined" &&
SelectionManager.savedProperties[SelectionManager.selections[0]].type === "Zone");
that.setHandleScaleEdgeVisible(showOutlineForZone || (!isActiveTool(handleRotatePitchRing) &&
!isActiveTool(handleRotateYawRing) &&
!isActiveTool(handleRotateRollRing)));