File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const props = defineProps<{
3939 curveSegments: number
4040 materialConfig: MaterialConfig
4141 controlsConfig: ControlsConfig
42+ zFighting: boolean
4243}>()
4344
4445const emit = defineEmits <{
@@ -110,7 +111,7 @@ function fixFloat(num: number) {
110111}
111112
112113// 计算实际显示的形状
113- const shownShapes = computed (() => suppressZFighting (props .shapes ))
114+ const shownShapes = computed (() => props . zFighting ? suppressZFighting (props .shapes ) : props . shapes )
114115
115116// 获取形状的材质配置
116117function getShapeMaterialConfig(index : number ) {
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ const isLoaded = computed(() => svgShapes.value.length && !isDefaultSvg.value)
221221 v-model:camera-position =" cameraPosition"
222222 v-model:selected-shape-index =" selectedShownShapeIndex"
223223 :shapes =" shownShapes"
224+ :z-fighting =" !isExporting"
224225 :scale =" scale"
225226 :curve-segments =" curveSegments"
226227 :material-config =" {
You can’t perform that action at this time.
0 commit comments