From 529ca28b665d40f5fa705b9ea25b1c91b68c7bd7 Mon Sep 17 00:00:00 2001
From: Jrius <2261279+Jrius@users.noreply.github.com>
Date: Sun, 15 Dec 2024 12:30:30 +0100
Subject: [PATCH] Fix anim message not picking up objects

---
 korman/nodes/node_messages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/korman/nodes/node_messages.py b/korman/nodes/node_messages.py
index ac1e582..97c33cf 100644
--- a/korman/nodes/node_messages.py
+++ b/korman/nodes/node_messages.py
@@ -117,7 +117,7 @@ class PlasmaAnimCmdMsgNode(idprops.IDPropMixin, PlasmaMessageWithCallbacksNode,
     def _poll_target_object(self, value: bpy.types.Object) -> bool:
         if self.anim_type == "TEXTURE":
             return idprops.poll_drawable_objects(self, value)
-        elif self.anim_type == "MESH":
+        elif self.anim_type == "OBJECT":
             return idprops.poll_animated_objects(self, value)
         else:
             raise RuntimeError()