From 7c14af7129c6b1c2144490f51f3a881c3e28abf8 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Wed, 26 Apr 2023 10:52:20 +0300 Subject: [PATCH] Add Cel3D in ExtensionsAPI --- src/Autoload/ExtensionsAPI.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Autoload/ExtensionsAPI.gd b/src/Autoload/ExtensionsAPI.gd index a06072d45..26ad91f03 100644 --- a/src/Autoload/ExtensionsAPI.gd +++ b/src/Autoload/ExtensionsAPI.gd @@ -285,7 +285,7 @@ class ToolAPI: ExtensionsApi.add_action("add_tool") func remove_tool(tool_name: String) -> void: - # Re-assigning the tools in case the tool to be removed is also Active + # Re-assigning the tools in case the tool to be removed is also active Tools.assign_tool("Pencil", BUTTON_LEFT) Tools.assign_tool("Eraser", BUTTON_RIGHT) var tool_class: Tools.Tool = Tools.tools[tool_name] @@ -310,5 +310,7 @@ class ProjectAPI: return {"cel": cel, "type": "PixelCel"} elif cel is GroupCel: return {"cel": cel, "type": "GroupCel"} + elif cel is Cel3D: + return {"cel": cel, "type": "Cel3D"} else: return {"cel": cel, "type": "BaseCel"}