Skip to content

Commit

Permalink
fix to make the spine extension computable with Defold 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Feb 29, 2024
1 parent 8ed99a3 commit a0c82cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defold-spine/src/gui_node_spine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static bool SetupNode(dmhash_t path, SpineSceneResource* resource, InternalGuiNo

node->m_Transform = dmVMath::Matrix4::identity();

dmGui::SetNodeTexture(node->m_GuiScene, node->m_GuiNode, dmGui::NODE_TEXTURE_TYPE_TEXTURE_SET, node->m_SpineScene->m_TextureSet);
dmGui::SetNodeTexture(node->m_GuiScene, node->m_GuiNode, dmGui::NODE_TEXTURE_TYPE_TEXTURE_SET, (dmGui::HTextureSource)node->m_SpineScene->m_TextureSet);

if (create_bones)
{
Expand Down Expand Up @@ -848,7 +848,7 @@ static void GuiUpdate(const dmGameSystem::CustomNodeCtx* nodectx, float dt)
if (node->m_FirstUpdate)
{
node->m_FirstUpdate = 0;
dmGui::SetNodeTexture(node->m_GuiScene, node->m_GuiNode, dmGui::NODE_TEXTURE_TYPE_TEXTURE_SET, node->m_SpineScene->m_TextureSet);
dmGui::SetNodeTexture(node->m_GuiScene, node->m_GuiNode, dmGui::NODE_TEXTURE_TYPE_TEXTURE_SET, (dmGui::HTextureSource)node->m_SpineScene->m_TextureSet);
}
// end temp fix

Expand Down

0 comments on commit a0c82cc

Please sign in to comment.