Преглед на файлове

use params from geo utils

Alexander Rose преди 6 години
родител
ревизия
7e56e70477
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      src/mol-plugin/state/transforms/data.ts
  2. 3 1
      src/mol-plugin/state/transforms/representation.ts

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