Explorar o código

Merge pull request #7798 from ycw/master

fixed missing options for `MeshBuilder.CreateBox`
mergify[bot] %!s(int64=5) %!d(string=hai) anos
pai
achega
59b36372bd
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      dist/preview release/what's new.md
  2. 1 1
      src/Meshes/meshBuilder.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -55,5 +55,6 @@
 - Exit XR will only trigger only if state is IN_XR ([RaananW](https://github.com/RaananW))
 - Fix improper baking of transformed textures in `KHR_texture_transform` serializer. ([drigax](https://github.com/Drigax))
 - Fixed NME codegen: missing common properties for float-value input block. ([ycw](https://github.com/ycw))
+- Fixed missing options for MeshBuilder.CreateBox. ([ycw](https://github.com/ycw))
 
 ## Breaking changes

+ 1 - 1
src/Meshes/meshBuilder.ts

@@ -49,7 +49,7 @@ export class MeshBuilder {
      * @param scene defines the hosting scene
      * @returns the box mesh
      */
-    public static CreateBox(name: string, options: { size?: number, width?: number, height?: number, depth?: number, faceUV?: Vector4[], faceColors?: Color4[], sideOrientation?: number, frontUVs?: Vector4, backUVs?: Vector4, updatable?: boolean }, scene: Nullable<Scene> = null): Mesh {
+    public static CreateBox(name: string, options: { size?: number, width?: number, height?: number, depth?: number, faceUV?: Vector4[], faceColors?: Color4[], sideOrientation?: number, frontUVs?: Vector4, backUVs?: Vector4, wrap?: boolean, topBaseAt?: number, bottomBaseAt?: number, updatable?: boolean }, scene: Nullable<Scene> = null): Mesh {
         return BoxBuilder.CreateBox(name, options, scene);
     }