Skip to content

Commit 21d801e

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Fix logic: remove quality preset for cartoons to respect smoothSheet settings
1 parent f373bd9 commit 21d801e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/ProteinViewer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,7 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
24382438

24392439
let globalParams = { ...params };
24402440
if (repType === 'cartoon') {
2441+
delete globalParams.quality; // START_FIX: Remove quality preset to ensure smoothSheet/subdiv take precedence
24412442
Object.assign(globalParams, cartoonParams);
24422443
try { component.structure.eachModel((m: any) => m.calculateSecondaryStructure?.()); } catch (e) { }
24432444
}

0 commit comments

Comments
 (0)