Merge pull request #12520 from elisa-lj11/selection_tool_log_spam

Fixed log spam undefined error
This commit is contained in:
Elisa Lupin-Jimenez 2018-02-28 09:37:17 -08:00 committed by GitHub
commit 061a189e9f
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)));