Fix a bug in tangible.build, and add testing code
This commit is contained in:
@@ -292,6 +292,7 @@ LuaDefine(tangible_build, "config",
|
|||||||
LS.rawset(mt, "__index", classtab);
|
LS.rawset(mt, "__index", classtab);
|
||||||
|
|
||||||
tan->anim_queue_.clear(state);
|
tan->anim_queue_.clear(state);
|
||||||
|
tan->update_plane_item();
|
||||||
|
|
||||||
return LS.result();
|
return LS.result();
|
||||||
}
|
}
|
||||||
@@ -831,7 +832,6 @@ LuaDefine(pprint, "obj1, obj2, ...",
|
|||||||
(*ostream) << std::endl;
|
(*ostream) << std::endl;
|
||||||
}
|
}
|
||||||
return LS.result();
|
return LS.result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LuaDefine(pprintx, "options",
|
LuaDefine(pprintx, "options",
|
||||||
|
|||||||
@@ -42,3 +42,11 @@ function login.cb_p123_nopredict(actor, place, dialog)
|
|||||||
print(3)
|
print(3)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function gosomewhere()
|
||||||
|
local a = tangible.actor()
|
||||||
|
tangible.animate(a, {plane="somewhere"})
|
||||||
|
end
|
||||||
|
|
||||||
|
function mkt()
|
||||||
|
return tangible.build{class="login", animstate={plane="somewhere", xyz={1,2,3}}}
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user