Skip to content

Camera spawns at position Vec4(0, 0, 0, 1) when a scene is changed in runtime - Blender 4.2.x #3131

@moisesjpelaez

Description

@moisesjpelaez

Description
On runtime, when a scene is changed to another scene, the Camera spawns at Vec4(0, 0, 0, 1) instead of its local position. If the camera is clicked and the blend file saved the camera spawns properly, but I have to do that each time I open the blend file and in all the scenes.

Things work properly in Blender 3.6.x, this has happened to me in Blender 4.2.x.

To Reproduce
Using the test file:

  1. Open the blend file in Blender 4.2.x
  2. Change the scene to CameraScene by pressing spacebar
  3. The camera will spawn at position Vec4(0, 0, 0, 1) instead to its local position (the cube won't be displayed)
  4. Stop the game and open the CameraScene
  5. Click the camera
  6. Save the blend file
  7. Re-run the game and the Camera spawns properly

Expected behavior
The camera should keep its local position when the blend file is opened and the game runs, without needing to click it each time is opened.

System
Blender: 4.2.6 LTS
Armory: 2025.1.0
OS: Windows 11 Pro (x64)
Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop

Test File
camera_spawn.zip

Edit 1: I just have to click the empties, there's no need to move them to make the camera spawn properly.
Edit 2: I realized it happens with non-child cameras as well, updated the issue according to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions