修改自定义编号
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
import { CylinderGeometry, LineSegments, Matrix4, Mesh, MeshBasicMaterial, Vector2, Vector3 } from "three";
 | 
					import { CylinderGeometry, LineSegments, Matrix4, Mesh, MeshBasicMaterial, Vector2, Vector3 } from "three";
 | 
				
			||||||
import { DbText, ExtrudeSolid, Polyline, TextAligen, boardUVGenerator2 } from "webcad_ue4_api";
 | 
					import { DbText, ExtrudeSolid, Polyline, RenderType, TextAligen, boardUVGenerator2 } from "webcad_ue4_api";
 | 
				
			||||||
import { ColorMaterial } from "./ColorPalette";
 | 
					import { ColorMaterial } from "./ColorPalette";
 | 
				
			||||||
import { edgeMaterial } from "./Material";
 | 
					import { edgeMaterial } from "./Material";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -158,7 +158,12 @@ export class SimpleBoard
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // 自定义编号
 | 
					        // 自定义编号
 | 
				
			||||||
        this.createCustomNo();
 | 
					        this.createCustomNo();
 | 
				
			||||||
        mesh.add(this._CustomNumberTextEntity);
 | 
					        let o = this._CustomNumberTextEntity.GetDrawObjectFromRenderType(RenderType.Conceptual);
 | 
				
			||||||
 | 
					        if (o)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            mesh.add(o);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return { mesh, edges };
 | 
					        return { mesh, edges };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user