fix room crashing bug
This commit is contained in:
parent
93604be82d
commit
7b0a753078
|
@ -47,7 +47,7 @@ shadow_enabled = true
|
|||
[node name="XROrigin3D" type="XROrigin3D" parent="."]
|
||||
|
||||
[node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
|
||||
transform = Transform3D(0.999992, 0.00357422, -0.00141238, -0.00357241, 0.999993, 0.00127761, 0.00141693, -0.00127253, 0.999998, 0.0356617, 0.71033, 0.00564247)
|
||||
transform = Transform3D(0.999999, 0.00106283, -0.000420545, -0.00106267, 0.999999, 0.000379457, 0.000420948, -0.000378989, 1, 0.0356617, 0.71033, 0.00564247)
|
||||
cull_mask = 524287
|
||||
current = true
|
||||
|
||||
|
|
|
@ -26,6 +26,9 @@ func has_point(point: Vector3) -> bool:
|
|||
func get_aabb():
|
||||
var room_store = Store.house.get_room(name)
|
||||
|
||||
if room_store == null:
|
||||
return AABB()
|
||||
|
||||
var corners = room_store.corners
|
||||
|
||||
if corners.size() == 0:
|
||||
|
@ -119,4 +122,3 @@ static func generate_ceiling_mesh(room_store: Dictionary):
|
|||
var mesh = st.commit()
|
||||
|
||||
return mesh
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user