120 node->update_func(node); |
120 node->update_func(node); |
121 } |
121 } |
122 if (asc_test_flag(node->flags, ASC_SCENE_NODE_UPDATE_TRANSFORM)) { |
122 if (asc_test_flag(node->flags, ASC_SCENE_NODE_UPDATE_TRANSFORM)) { |
123 asc_set_flag(node->flags, ASC_SCENE_NODE_TRANSFORM_UPDATED); |
123 asc_set_flag(node->flags, ASC_SCENE_NODE_TRANSFORM_UPDATED); |
124 asc_clear_flag(node->flags, ASC_SCENE_NODE_UPDATE_TRANSFORM); |
124 asc_clear_flag(node->flags, ASC_SCENE_NODE_UPDATE_TRANSFORM); |
125 asc_transform_from_parts( |
125 // TODO: FIXME: this makes it impossible to directly modify the transform with matrix operations! |
|
126 asc_transform_from_vec3f( |
126 node->transform, |
127 node->transform, |
127 node->position, |
128 node->position, |
128 node->scale, |
129 node->scale, |
129 node->rotation |
130 node->rotation |
130 ); |
131 ); |