Browse Source

canvas ui fixes

Alexander Rose 6 years ago
parent
commit
28beb5ab9d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/apps/canvas/component/structure-representation.tsx

+ 3 - 3
src/apps/canvas/component/structure-representation.tsx

@@ -57,7 +57,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
 
             flatShaded: (repr.props as any).flatShaded,
             resolutionFactor: (repr.props as any).resolutionFactor,
-            radiusOffset: (repr.props as any).probeRadius,
+            radiusOffset: (repr.props as any).radiusOffset,
             smoothness: (repr.props as any).smoothness,
         })
     }
@@ -73,7 +73,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
 
         if (state.flatShaded !== undefined) (props as any).flatShaded = state.flatShaded
         if (state.resolutionFactor !== undefined) (props as any).resolutionFactor = state.resolutionFactor
-        if (state.radiusOffset !== undefined) (props as any).probeRadius = state.radiusOffset
+        if (state.radiusOffset !== undefined) (props as any).radiusOffset = state.radiusOffset
         if (state.smoothness !== undefined) (props as any).smoothness = state.smoothness
 
         await repr.createOrUpdate(props).run(
@@ -101,7 +101,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
 
             flatShaded: (repr.props as any).flatShaded,
             resolutionFactor: (repr.props as any).resolutionFactor,
-            probeRadius: (repr.props as any).probeRadius,
+            radiusOffset: (repr.props as any).radiusOffset,
             isoValue: (repr.props as any).isoValue,
         }
         this.setState(newState)