Skip to content

Commit

Permalink
Lower the floor and HideSelect floor&camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Gino authored and Gino committed Feb 11, 2025
1 parent 9f0d926 commit 7c66aff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion editor-blender/core/actions/state/load/floor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,15 @@ def setup_floor() -> None:
bpy.data.objects.remove(obj, do_unlink=True)

# Add new floor
bpy.ops.mesh.primitive_cube_add(scale=(stage_width / 2, stage_length / 2, 0.01))
bpy.ops.mesh.primitive_cube_add(
scale=(stage_width / 2, stage_length / 2, 0.01),
location=(0,0,-0.03)
)

obj = bpy.context.object
if obj:
obj.rotation_euler.z = 1.5708
obj.name = flr
obj.color = (0.00315199, 0.00315199, 0.00315199, 1)
obj.active_material = material_wooden
obj.hide_select = True
1 change: 1 addition & 0 deletions editor-blender/operators/camera/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def toggle_camera_view(context):
bpy.ops.object.camera_add()
camera = bpy.context.object
camera.name = "lightdance_camera" # type: ignore
camera.hide_select = True # type: ignore

scene.camera = camera

Expand Down

0 comments on commit 7c66aff

Please sign in to comment.