]> git.localhorst.tv Git - blank.git/blobdiff - src/app/app.cpp
use entity's eyes to aim
[blank.git] / src / app / app.cpp
index 22a3b586a1850a38d8ba11d45003754f3d05d05b..b3b330036b5e2f0c855266c0219dee023a2eebee 100644 (file)
@@ -527,6 +527,8 @@ void AssetLoader::LoadModels(
                        in.Skip(Token::EQUALS);
                        if (prop_name == "root") {
                                model.RootPart().Read(in, tex_index, shapes);
+                       } else if (prop_name == "eyes") {
+                               model.SetEyes(in.GetULong());
                        } else {
                                while (in.HasMore() && in.Peek().type != Token::SEMICOLON) {
                                        in.Next();