Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion blenderproc/python/constructor/RandomRoomConstructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,12 @@ def extract_plane_from_room(obj: MeshObject, used_split_height: float, up_vec: m
if "Floor" == used_split_height[1]:
floor_obj = created_obj
elif "Ceiling" == used_split_height[1]:
ceiling_obj = created_obj
if create_ceiling:
ceiling_obj = created_obj
else:
# delete the created ceiling if it should not be created
created_obj.delete()

elif create_ceiling:
# there is no ceiling -> create one
wall_obj.edit_mode()
Expand Down