SCM flag,
SCM newvalue)
{
- if (mesh_scene_node_p (wrapped_obj) || scene_node_p (wrapped_obj))
+ if (animated_mesh_scene_node_p (wrapped_obj) ||
+ mesh_scene_node_p (wrapped_obj) ||
+ scene_node_p (wrapped_obj))
{
return irr_scene_ISceneNode_setMaterialFlag (wrapped_obj, flag, newvalue);
}
{
irr::scene::ISceneNode* node;
- if (mesh_scene_node_p (wrapped_scene_node))
+ if (animated_mesh_scene_node_p (wrapped_scene_node))
+ {
+ node = (irr::scene::ISceneNode*)unwrap_animated_mesh_scene_node (wrapped_scene_node);
+ }
+ else if (mesh_scene_node_p (wrapped_scene_node))
{
node = (irr::scene::ISceneNode*)unwrap_mesh_scene_node (wrapped_scene_node);
}