]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props_io.cxx
Revert "Use simgear internal stuff for the singleton class."
[simgear.git] / simgear / props / props_io.cxx
index 0877390e8b2387eb28db66910ea0083b5c207e4c..8fae12f8b205c3a09f4344cedd8b62b4d86c6104 100644 (file)
@@ -262,7 +262,10 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
     }
 
     const char *type = atts.getValue("type");
-    if (type)
+    // if a type is given and the node is tied,
+    // don't clear the value because
+    // clearValue() unties the property
+    if (type && false == node->isTied() )
       node->clearValue();
     push_state(node, type, mode, omit);
   }