Fix a bug in tangible.build, and add testing code

This commit is contained in:
2023-09-28 14:22:33 -04:00
parent ff4ed323e0
commit c6b6f3bc84
2 changed files with 9 additions and 1 deletions

View File

@@ -292,6 +292,7 @@ LuaDefine(tangible_build, "config",
LS.rawset(mt, "__index", classtab);
tan->anim_queue_.clear(state);
tan->update_plane_item();
return LS.result();
}
@@ -831,7 +832,6 @@ LuaDefine(pprint, "obj1, obj2, ...",
(*ostream) << std::endl;
}
return LS.result();
}
LuaDefine(pprintx, "options",

View File

@@ -42,3 +42,11 @@ function login.cb_p123_nopredict(actor, place, dialog)
print(3)
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