Skip to content
Snippets Groups Projects
Commit ae2314d7 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix camera/bounding helper not showing up

parent 66675097
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Smooth border of molecular-surface with ``includeParent`` enabled
- Hide ``includeParent`` option from gaussian-surface visuals (not particularly useful)
- Improved ``StructureElement.Loci.size`` performance (for marking large cellpack models)
- Fix new ``TransformData`` issues (camera/bounding helper not showing up)
## [v2.2.2] - 2021-08-11
......
......@@ -60,11 +60,8 @@ export function createTransform(transformArray: Float32Array, instanceCount: num
ValueCell.update(transformData.aInstance, fillSerial(aInstance, instanceCount));
ValueCell.update(transformData.hasReflection, hasReflection);
updateTransformData(transformData);
return transformData;
} else {
return {
transformData = {
aTransform: ValueCell.create(new Float32Array(instanceCount * 16)),
matrix: ValueCell.create(Mat4.identity()),
transform: ValueCell.create(new Float32Array(transformArray)),
......@@ -75,6 +72,9 @@ export function createTransform(transformArray: Float32Array, instanceCount: num
hasReflection: ValueCell.create(hasReflection),
};
}
updateTransformData(transformData);
return transformData;
}
const identityTransform = new Float32Array(16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment