diff --git a/Source/DataSources/ConeVisualizer.js b/Source/DataSources/ConeVisualizer.js index 823f810c0cbf..d6f7ea82951c 100644 --- a/Source/DataSources/ConeVisualizer.js +++ b/Source/DataSources/ConeVisualizer.js @@ -139,8 +139,8 @@ define([ var cachedPosition = new Cartesian3(); var cachedOrientation = new Quaternion(); function updateObject(visualizer, time, entity) { - var coneGraphics = entity._cone; - if (!defined(coneGraphics)) { + var dynamicCone = entity._cone; + if (!defined(dynamicCone)) { return; } @@ -176,7 +176,7 @@ define([ cone.show = true; var minimumClockAngle; - var property = coneGraphics._minimumClockAngle; + var property = dynamicCone._minimumClockAngle; if (defined(property)) { minimumClockAngle = property.getValue(time); } @@ -185,7 +185,7 @@ define([ } var maximumClockAngle; - property = coneGraphics._maximumClockAngle; + property = dynamicCone._maximumClockAngle; if (defined(property)) { maximumClockAngle = property.getValue(time); } @@ -194,7 +194,7 @@ define([ } var innerHalfAngle; - property = coneGraphics._innerHalfAngle; + property = dynamicCone._innerHalfAngle; if (defined(property)) { innerHalfAngle = property.getValue(time); } @@ -203,7 +203,7 @@ define([ } var outerHalfAngle; - property = coneGraphics._outerHalfAngle; + property = dynamicCone._outerHalfAngle; if (defined(property)) { outerHalfAngle = property.getValue(time); } @@ -223,7 +223,7 @@ define([ cone.minimumClockAngle = minimumClockAngle; } - property = coneGraphics._radius; + property = dynamicCone._radius; if (defined(property)) { var radius = property.getValue(time); if (defined(radius)) { @@ -245,12 +245,12 @@ define([ cone.lateralSurfaceMaterial = MaterialProperty.getValue(time, coneGraphics._lateralSurfaceMaterial, cone.lateralSurfaceMaterial); - property = coneGraphics._intersectionColor; + property = dynamicCone._intersectionColor; if (defined(property)) { property.getValue(time, cone.intersectionColor); } - property = coneGraphics._intersectionWidth; + property = dynamicCone._intersectionWidth; if (defined(property)) { var intersectionWidth = property.getValue(time); if (defined(intersectionWidth)) { diff --git a/Source/DataSources/PyramidVisualizer.js b/Source/DataSources/PyramidVisualizer.js index 67bdf2532d3b..749e2247b2a3 100644 --- a/Source/DataSources/PyramidVisualizer.js +++ b/Source/DataSources/PyramidVisualizer.js @@ -97,12 +97,12 @@ define([ var position; var orientation; function updateObject(visualizer, time, entity) { - var pyramidGraphics = entity._pyramid; - if (!defined(pyramidGraphics)) { + var dynamicPyramid = entity._pyramid; + if (!defined(dynamicPyramid)) { return; } - var directionsProperty = pyramidGraphics._directions; + var directionsProperty = dynamicPyramid._directions; if (!defined(directionsProperty)) { return; } @@ -174,7 +174,7 @@ define([ } } - property = pyramidGraphics._intersectionWidth; + property = dynamicPyramid._intersectionWidth; if (defined(property)) { var intersectionWidth = property.getValue(time); if (defined(intersectionWidth)) {