Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/entityproperties.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entityproperties.cc b/src/entityproperties.cc
index 533c1fc..08c5088 100644
--- a/src/entityproperties.cc
+++ b/src/entityproperties.cc
@@ -97,6 +97,7 @@ void EntityProperties::save(QTextStream &textstream)
save_comment(textstream, "label");
if (label().size())
textstream << "label=" << label() << '\n';
+
save_comment(textstream, "name");
if (name().size())
textstream << "name=" << name() << '\n';
@@ -107,7 +108,9 @@ void EntityProperties::save(QTextStream &textstream)
// angles
save_comment(textstream, "angles");
- textstream << "angles=" << angles().y() << " " << angles().x() << " " << angles().z() << '\n';
+ if ((angles().x() != 0) || (angles().y() != 0) || (angles().z() != 0)) {
+ textstream << "angles=" << angles().y() << " " << angles().x() << " " << angles().z() << '\n';
+ }
// radius
save_comment(textstream, "radius");