Commit e7afb972 authored by cutealien's avatar cutealien

Add xml-serialization to the serializeAttributes test. Add comment to...

Add xml-serialization to the serializeAttributes test. Add comment to readAttributeFromXML that userPointers are intentionally set to 0.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3033 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6cc3ffc5
...@@ -1487,6 +1487,12 @@ void CAttributes::readAttributeFromXML(io::IXMLReader* reader) ...@@ -1487,6 +1487,12 @@ void CAttributes::readAttributeFromXML(io::IXMLReader* reader)
} }
addArray(name.c_str(),tmpArray); addArray(name.c_str(),tmpArray);
} }
else
if (element == L"userPointer")
{
// It's debatable if a pointer should be set or not, but it's more likely that adding it now would wreck user-applications.
// Also it probably doesn't makes sense setting this to a value when it comes from file.
}
} }
//! Write these attributes into a xml file //! Write these attributes into a xml file
......
This diff is collapsed.
Test suite pass at GMT Tue Dec 8 04:35:12 2009 Test suite pass at GMT Wed Dec 9 01:28:55 2009
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment