#include <irrlicht/irrlicht.h>
#include <libguile.h>
+#include "animated-mesh-scene-node.h"
#include "material-flags.h"
#include "scene-node.h"
SCM flag,
SCM newvalue)
{
- if (scene_node_p (wrapped_obj))
+ if (animated_mesh_scene_node_p (wrapped_obj))
+ {
+ unwrap_animated_mesh_scene_node (wrapped_obj)->setMaterialFlag (scm_to_material_flag (flag),
+ scm_to_bool (newvalue));
+ }
+ else if (scene_node_p (wrapped_obj))
{
unwrap_scene_node (wrapped_obj)->setMaterialFlag (scm_to_material_flag (flag),
scm_to_bool (newvalue));