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 ...@@ -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 - Smooth border of molecular-surface with ``includeParent`` enabled
- Hide ``includeParent`` option from gaussian-surface visuals (not particularly useful) - Hide ``includeParent`` option from gaussian-surface visuals (not particularly useful)
- Improved ``StructureElement.Loci.size`` performance (for marking large cellpack models) - 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 ## [v2.2.2] - 2021-08-11
......
...@@ -60,11 +60,8 @@ export function createTransform(transformArray: Float32Array, instanceCount: num ...@@ -60,11 +60,8 @@ export function createTransform(transformArray: Float32Array, instanceCount: num
ValueCell.update(transformData.aInstance, fillSerial(aInstance, instanceCount)); ValueCell.update(transformData.aInstance, fillSerial(aInstance, instanceCount));
ValueCell.update(transformData.hasReflection, hasReflection); ValueCell.update(transformData.hasReflection, hasReflection);
updateTransformData(transformData);
return transformData;
} else { } else {
return { transformData = {
aTransform: ValueCell.create(new Float32Array(instanceCount * 16)), aTransform: ValueCell.create(new Float32Array(instanceCount * 16)),
matrix: ValueCell.create(Mat4.identity()), matrix: ValueCell.create(Mat4.identity()),
transform: ValueCell.create(new Float32Array(transformArray)), transform: ValueCell.create(new Float32Array(transformArray)),
...@@ -75,6 +72,9 @@ export function createTransform(transformArray: Float32Array, instanceCount: num ...@@ -75,6 +72,9 @@ export function createTransform(transformArray: Float32Array, instanceCount: num
hasReflection: ValueCell.create(hasReflection), hasReflection: ValueCell.create(hasReflection),
}; };
} }
updateTransformData(transformData);
return transformData;
} }
const identityTransform = new Float32Array(16); const identityTransform = new Float32Array(16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment