mirror of
https://github.com/CNCKitchen/stlTexturizer.git
synced 2026-04-07 22:11:32 +00:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1408,6 +1408,11 @@ function addSmoothNormals(geometry) {
|
||||
async function toggleDisplacementPreview(enable) {
|
||||
settings.useDisplacement = enable;
|
||||
|
||||
// Exit surface masking mode when the 3D preview is activated
|
||||
if (enable && exclusionTool) {
|
||||
setExclusionTool(null);
|
||||
}
|
||||
|
||||
if (!enable) {
|
||||
// Revert to original geometry with bump-only shading.
|
||||
if (currentGeometry && previewMaterial) {
|
||||
|
||||
Reference in New Issue
Block a user