Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-04-30 15:27:10 +0000
committerStijn Buys <ingar@osirion.org>2012-04-30 15:27:10 +0000
commite1ca4c711a5b54653f58f6320f193bae1be62f61 (patch)
tree134973b9dc1bc69055324dc8e4f3f442f59766d2 /src/editorwindow.cc
parente3af85ab1a06742ba23c815b80887fdbf32fe36c (diff)
Corrected parameter order of the entity angles key
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r--src/editorwindow.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc
index ee71577..f9a01c0 100644
--- a/src/editorwindow.cc
+++ b/src/editorwindow.cc
@@ -159,8 +159,10 @@ bool EditorWindow::loadFile(const QString &filename)
entity->properties()->set_radius(f);
} else if (ini.got_key_vector3f("angles" , x, y, z)) {
+ // the angles key param order is pitch yaw roll
+ // the in-memory order is yaw pitch roll
entity->properties()->set_comment(ini.key(), ini.comment());
- entity->properties()->set_angles(x, y, z);
+ entity->properties()->set_angles(y, x, z);
} else if (ini.got_key_float("yaw", x)) {
entity->properties()->set_yaw(x);