diff --git a/src/mol-plugin/state/transforms/data.ts b/src/mol-plugin/state/transforms/data.ts index 5769e684c89869f9d047ed6221daf63bd7b7d2b0..43c82b639de8388404961518f571027401a37003 100644 --- a/src/mol-plugin/state/transforms/data.ts +++ b/src/mol-plugin/state/transforms/data.ts @@ -190,7 +190,7 @@ export { ParsePly } type ParsePly = typeof ParsePly const ParsePly = PluginStateTransform.BuiltIn({ name: 'parse-ply', - display: { name: 'Parse PLY', description: 'Parse PLY from Binary data' }, + display: { name: 'Parse PLY', description: 'Parse PLY from String data' }, from: [SO.Data.String], to: SO.Format.Ply })({ diff --git a/src/mol-plugin/state/transforms/representation.ts b/src/mol-plugin/state/transforms/representation.ts index 83cd9b257ed9bfb0ba70bcdfa92dcd17975f221a..0b11a2870d451defed7f1563addd341c65c8f7a3 100644 --- a/src/mol-plugin/state/transforms/representation.ts +++ b/src/mol-plugin/state/transforms/representation.ts @@ -474,6 +474,8 @@ const VolumeRepresentation3D = PluginStateTransform.BuiltIn({ } }); +// + export { ShapeRepresentation3D } type ShapeRepresentation3D = typeof ShapeRepresentation3D const ShapeRepresentation3D = PluginStateTransform.BuiltIn({ @@ -482,7 +484,7 @@ const ShapeRepresentation3D = PluginStateTransform.BuiltIn({ from: SO.Shape.Provider, to: SO.Shape.Representation3D, params: (a, ctx: PluginContext) => { - return BaseGeometry.Params + return a ? a.data.geometryUtils.Params : BaseGeometry.Params } })({ canAutoUpdate() {