aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_animation.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-10 11:46:29 +0800
committerchai <chaifix@163.com>2018-12-10 11:46:29 +0800
commitce8e259441410aba3f2345333003032ed9c45d65 (patch)
treeb28b8a30e2b30081a2f9bdbf0a142099f7a8cd6f /src/lua/modules/graphics/je_lua_animation.cpp
parentb1dfdae7a071407ef5e2d56f2203f96e6ba6068d (diff)
*删除shared的lua类型信息
Diffstat (limited to 'src/lua/modules/graphics/je_lua_animation.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_animation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/modules/graphics/je_lua_animation.cpp b/src/lua/modules/graphics/je_lua_animation.cpp
index 2bb635a..5cd3b1f 100644
--- a/src/lua/modules/graphics/je_lua_animation.cpp
+++ b/src/lua/modules/graphics/je_lua_animation.cpp
@@ -42,7 +42,7 @@ namespace JinEngine
Sprite* sprite = luaSprite->getObject<Sprite>();
animation->addFrame(sprite);
int i = animation->getFrameCount() - 1;
- luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + i, luaSprite->getShared());
+ luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + i, luaSprite);
return 0;
}
@@ -64,7 +64,7 @@ namespace JinEngine
Sprite* sprite = luaSprite->getObject<Sprite>();
shrAnimation->addFrame(sprite);
int index = shrAnimation->getFrameCount() - 1;
- luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + index, luaSprite->getShared());
+ luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + index, luaSprite);
}
return 0;
}
@@ -90,8 +90,8 @@ namespace JinEngine
LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation);
Animation* shrAnimation = luaObj->getObject<Animation>();
int i = luax_checkinteger(L, 2);
- Shared* shrFrame = luaObj->getDependency((int)AnimationDependency::DEP_SPRITES + i);
- luax_getobject(L, shrFrame);
+ LuaObject* frame = luaObj->getDependency((int)AnimationDependency::DEP_SPRITES + i);
+ luax_getobject(L, frame);
return 1;
}