Fix #119250: Python: World matrix for newly created objects is not identity

Initialize these like other fields in the object runtime struct.
This commit is contained in:
Hans Goudey 2024-03-11 15:25:47 -04:00
parent d6829fa7cc
commit 68ac54bbcc
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,9 @@ struct GeometrySet;
struct ObjectRuntime {
/** Final transformation matrices with constraints & animsys applied. */
float4x4 object_to_world;
float4x4 world_to_object;
float4x4 object_to_world = float4x4::identity();
float4x4 world_to_object = float4x4::identity();
/**
* The custom data layer mask that was last used
* to calculate data_eval and mesh_deform_eval.