Skip to content

Commit 0fa024c

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Fix smoothSheet toggle: Remove quality override and restore sane defaults
1 parent 242c04d commit 0fa024c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/ProteinViewer.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,19 +2429,18 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
24292429
}
24302430

24312431
const cartoonParams = {
2432-
aspectRatio: smoothSheetEnabled ? 6.0 : 1.0, // Wide vs Narrow
2433-
subdiv: smoothSheetEnabled ? 12 : 1, // Smooth vs Jagged path
2434-
radialSegments: smoothSheetEnabled ? 20 : 3, // Round vs Triangular cross-section
2435-
smoothSheet: !!smoothSheetEnabled,
2436-
flatShaded: !smoothSheetEnabled // Smooth vs Faceted shading
2432+
aspectRatio: 6.0,
2433+
subdiv: smoothSheetEnabled ? 12 : 6,
2434+
radialSegments: smoothSheetEnabled ? 20 : 10,
2435+
smoothSheet: !!smoothSheetEnabled
24372436
};
2438-
console.log("DEBUG: cartoonParams (Extreme Test)", cartoonParams);
2437+
// console.log("DEBUG: cartoonParams", cartoonParams);
24392438

24402439
let globalParams = { ...params };
24412440
if (repType === 'cartoon') {
24422441
delete globalParams.quality;
24432442
Object.assign(globalParams, cartoonParams);
2444-
console.log("DEBUG: globalParams (Final)", globalParams);
2443+
// console.log("DEBUG: globalParams (Final)", globalParams);
24452444
try { component.structure.eachModel((m: any) => m.calculateSecondaryStructure?.()); } catch (e) { }
24462445
}
24472446

0 commit comments

Comments
 (0)