未验证 提交 95cc197d 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18813 from flostellbrink/dev

Update types of nullable bounding boxes and spheres
......@@ -42,8 +42,8 @@ export class BufferGeometry extends EventDispatcher {
};
morphTargetsRelative: boolean;
groups: { start: number; count: number; materialIndex?: number }[];
boundingBox: Box3;
boundingSphere: Sphere;
boundingBox: Box3 | null;
boundingSphere: Sphere | null;
drawRange: { start: number; count: number };
userData: {[key: string]: any};
readonly isBufferGeometry: true;
......
......@@ -27,8 +27,8 @@ export class DirectGeometry {
morphTargets: MorphTarget[];
skinWeights: Vector4[];
skinIndices: Vector4[];
boundingBox: Box3;
boundingSphere: Sphere;
boundingBox: Box3 | null;
boundingSphere: Sphere | null;
verticesNeedUpdate: boolean;
normalsNeedUpdate: boolean;
colorsNeedUpdate: boolean;
......
......@@ -121,12 +121,12 @@ export class Geometry extends EventDispatcher {
/**
* Bounding box.
*/
boundingBox: Box3;
boundingBox: Box3 | null;
/**
* Bounding sphere.
*/
boundingSphere: Sphere;
boundingSphere: Sphere | null;
/**
* Set to true if the vertices array has been updated.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册