src/behavior.c

changeset 114
5b91bbab1ac0
parent 113
71ba88258ea0
--- a/src/behavior.c	Sat May 10 15:06:47 2025 +0200
+++ b/src/behavior.c	Sat May 10 15:42:56 2025 +0200
@@ -52,8 +52,8 @@
     }
     AscBehavior *behavior = cxListEmplace(node->behaviors);
     if (behavior == NULL) {
-        // TODO: output ID of node once we have implemented that
-        asc_error("Failed to add behavior to scene node.");
+        const cxstring node_name = asc_scene_node_get_name(node);
+        asc_error("Failed to add behavior to scene node %"CX_PRIstr, CX_SFMT(node_name));
         return NULL;
     }
     behavior->enabled = true;

mercurial