From 2ffd7c24faa64f27fe9574a3fc25b4bdfc86c6c8 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 15 Mar 2020 19:27:14 +0100 Subject: [PATCH] set-material-flag! --- src/material-flags.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/material-flags.cpp b/src/material-flags.cpp index 788a305..d700e4c 100644 --- a/src/material-flags.cpp +++ b/src/material-flags.cpp @@ -21,6 +21,7 @@ #include #include +#include "animated-mesh-scene-node.h" #include "material-flags.h" #include "scene-node.h" @@ -37,7 +38,12 @@ extern "C" { 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)); -- 2.39.5