Add floorName property to Floor interface and update related components for floor creation
This commit is contained in:
@@ -93,6 +93,7 @@ function FloorCreator() {
|
||||
if (tempPoints.length > 2 && isCreating && pointIntersects.object.uuid === tempPoints[0].pointUuid) {
|
||||
const floor: Floor = {
|
||||
floorUuid: THREE.MathUtils.generateUUID(),
|
||||
floorName: "Floor",
|
||||
points: tempPoints,
|
||||
topMaterial,
|
||||
sideMaterial,
|
||||
@@ -144,6 +145,7 @@ function FloorCreator() {
|
||||
if (tempPoints.length >= 3) {
|
||||
const floor: Floor = {
|
||||
floorUuid: THREE.MathUtils.generateUUID(),
|
||||
floorName: "Floor",
|
||||
points: tempPoints,
|
||||
topMaterial,
|
||||
sideMaterial,
|
||||
|
||||
@@ -66,6 +66,7 @@ function ReferenceFloor({ tempPoints }: Readonly<ReferenceFloorProps>) {
|
||||
|
||||
setTempFloor({
|
||||
floorUuid: 'temp-floor',
|
||||
floorName: 'temp-floor',
|
||||
points: floorPoints,
|
||||
topMaterial: 'default',
|
||||
sideMaterial: 'default',
|
||||
|
||||
Reference in New Issue
Block a user