Browse Source

use params from geo utils

Alexander Rose 6 years ago
parent
commit
7e56e70477

+ 1 - 1
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
 })({

+ 3 - 1
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() {