src/scene.c

changeset 130
c3fce2a543ee
parent 126
77c13e14a65f
child 133
823626940dc9
equal deleted inserted replaced
129:84e89b36c792 130:c3fce2a543ee
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 );

mercurial