Skip to content

Commit

Permalink
fix a bunch of weird entity problems
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Jul 24, 2018
1 parent 1f62bd9 commit 6d11d0f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Source/DataSources/StaticGeometryColorBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
if (defined(originalAttributes.depthFailColor)) {
originalAttributes.depthFailColor.value = attributes.depthFailColor;
attributes.depthFailColor = originalAttributes.depthFailColor.value;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions Source/DataSources/StaticGeometryPerMaterialBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
if (defined(originalAttributes.depthFailColor)) {
originalAttributes.depthFailColor.value = attributes.depthFailColor;
attributes.depthFailColor = originalAttributes.depthFailColor.value;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/DataSources/StaticGroundGeometryColorBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/DataSources/StaticGroundGeometryPerMaterialBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/DataSources/StaticGroundPolylinePerMaterialBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/DataSources/StaticOutlineGeometryBatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ define([

if (defined(attributes)) {
if (defined(originalAttributes.show)) {
originalAttributes.show.value = attributes.show;
attributes.show = originalAttributes.show.value;
}
if (defined(originalAttributes.color)) {
originalAttributes.color.value = attributes.color;
attributes.color = originalAttributes.color.value;
}
}
}
Expand Down

0 comments on commit 6d11d0f

Please sign in to comment.