summaryrefslogtreecommitdiffstats
path: root/libdimension/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/object.c')
-rw-r--r--libdimension/object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdimension/object.c b/libdimension/object.c
index 39064f3..75a82b6 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -24,7 +24,11 @@
dmnsn_object *
dmnsn_new_object()
{
- return malloc(sizeof(dmnsn_object));
+ dmnsn_object *object = malloc(sizeof(dmnsn_object));
+ if (object) {
+ object->trans = dmnsn_identity_matrix();
+ }
+ return object;
}
void