mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-21 13:03:13 +00:00
Add Cel3D in ExtensionsAPI
This commit is contained in:
parent
0145b9dede
commit
7c14af7129
1 changed files with 3 additions and 1 deletions
|
@ -285,7 +285,7 @@ class ToolAPI:
|
||||||
ExtensionsApi.add_action("add_tool")
|
ExtensionsApi.add_action("add_tool")
|
||||||
|
|
||||||
func remove_tool(tool_name: String) -> void:
|
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("Pencil", BUTTON_LEFT)
|
||||||
Tools.assign_tool("Eraser", BUTTON_RIGHT)
|
Tools.assign_tool("Eraser", BUTTON_RIGHT)
|
||||||
var tool_class: Tools.Tool = Tools.tools[tool_name]
|
var tool_class: Tools.Tool = Tools.tools[tool_name]
|
||||||
|
@ -310,5 +310,7 @@ class ProjectAPI:
|
||||||
return {"cel": cel, "type": "PixelCel"}
|
return {"cel": cel, "type": "PixelCel"}
|
||||||
elif cel is GroupCel:
|
elif cel is GroupCel:
|
||||||
return {"cel": cel, "type": "GroupCel"}
|
return {"cel": cel, "type": "GroupCel"}
|
||||||
|
elif cel is Cel3D:
|
||||||
|
return {"cel": cel, "type": "Cel3D"}
|
||||||
else:
|
else:
|
||||||
return {"cel": cel, "type": "BaseCel"}
|
return {"cel": cel, "type": "BaseCel"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue