We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1618a20 commit 0c948b0Copy full SHA for 0c948b0
Sources/Common/Core/DataArray/index.js
@@ -478,12 +478,18 @@ function vtkDataArray(publicAPI, model) {
478
return sortedObj;
479
};
480
481
+ /**
482
+ * @param {import("./index").vtkDataArray} other
483
+ */
484
publicAPI.deepCopy = (other) => {
485
// Retain current dataType and array reference before shallowCopy call.
486
const currentType = publicAPI.getDataType();
487
const currentArray = model.values;
488
publicAPI.shallowCopy(other);
489
490
+ // set the ranges
491
+ model.ranges = other.getRanges();
492
+
493
// Avoid array reallocation if size already sufficient
494
// and dataTypes match.
495
if (
0 commit comments