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:
parent
d6829fa7cc
commit
68ac54bbcc
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue