Closed Anniepoo closed 1 year ago
Hi, in your file there is a custom property called camera_select
on the charactercollision
object which is referenced by the CameraSelect
trait, but the OnePSLook
trait instead references the property active_camera
which doesn't exist (thus, Get Object Property
returns null). So I think there is no bug here.
Thanks - new user error, and possibly "Get Object Property" being unclear if it means an Armory property or a Blender property.
Added some more documentation at https://github.com/armory3d/armory/commit/dcda14cac891fbd9507fec4816fab8fda97afd87 and implemented object property display for the debug console at https://github.com/armory3d/armory/pull/2965, maybe this helps to prevent issues like this in the future :)
Description When Krom starts custom Blender object property does not respect set value from properties panel as default
To Reproduce
Expected behavior Expect game to start in 1ps camera follows mouse mode. Observed: game starts with no camera motion. type 1 and camera action starts Behavior is fixed by adding On Init event that sets active_camera to 1
System Blender: 3.6.5 Armory: 23.10.0 OS: Ubuntu 22.04.1 LTS Gnome 42.5 Graphics card: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] / Mesa Intel® UHD Graphics (CML GT2)
Test File (drag & drop the zipped .blend file here) starter.zip
This file includes the 'fix' - to repro bug, delete On Init and connected Set Object Property nodes