Skip to content

Commit

Permalink
axes helper on screenshot order fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-trzesiok committed May 17, 2022
1 parent 17568bc commit 422bea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/providers/threejs/objects/LinesSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = {
attribute = new Float32Array(attribute);
colors = new Float32Array(colors);

if (attribute && colorRange && colorMap && attribute.length > 0 && colorRange.length > 0
if (colorRange && colorMap && attribute.length > 0 && colorRange.length > 0
&& colorMap.length > 0) {
handleColorMap(geometry, colorMap, colorRange, attribute, material);
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/src/providers/threejs/objects/LinesThick.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function create(config, K3D) {
positions = new Float32Array(positions);
attribute = new Float32Array(attribute);

if (attribute && colorRange && colorMap && attribute.length > 0 && colorRange.length > 0 && colorMap.length > 0) {
if (colorRange && colorMap && attribute.length > 0 && colorRange.length > 0 && colorMap.length > 0) {
const canvas = colorMapHelper.createCanvasGradient(colorMap, 1024);
const texture = new THREE.CanvasTexture(canvas, THREE.UVMapping, THREE.ClampToEdgeWrapping,
THREE.ClampToEdgeWrapping, THREE.NearestFilter, THREE.NearestFilter);
Expand Down

0 comments on commit 422bea6

Please sign in to comment.