diff options
Diffstat (limited to 'libdimension/object.c')
-rw-r--r-- | libdimension/object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/object.c b/libdimension/object.c index dda80f0..7c4a714 100644 --- a/libdimension/object.c +++ b/libdimension/object.c @@ -68,10 +68,15 @@ dmnsn_initialize_object(dmnsn_object *object) bool should_init = false; dmnsn_matrix old_trans = object->trans; if (object->texture) { + DMNSN_INCREF(object->texture); should_init = object->texture->should_init; object->texture->should_init = false; } + if (object->interior) { + DMNSN_INCREF(object->interior); + } + if (object->initialize_fn) { object->initialize_fn(object); } |