Core: Revert superfluous changes made with PR #9521
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <Base/MatrixPy.h>
|
||||
#include <Base/PlacementPy.h>
|
||||
#include <Base/Reader.h>
|
||||
#include <Base/DocumentReader.h>
|
||||
|
||||
#include <Base/Quantity.h>
|
||||
#include <Base/QuantityPy.h>
|
||||
@@ -41,7 +40,6 @@
|
||||
#include "Placement.h"
|
||||
#include "ObjectIdentifier.h"
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
using namespace App;
|
||||
using namespace Base;
|
||||
@@ -154,25 +152,6 @@ void PropertyVector::Restore(Base::XMLReader &reader)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
void PropertyVector::Restore(Base::DocumentReader &reader,XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *ContainerDOM)
|
||||
{
|
||||
// read my Element
|
||||
auto PropertyVectorDOM = reader.FindElement(ContainerDOM,"PropertyVector");
|
||||
if(PropertyVectorDOM){
|
||||
// get the value of my Attribute
|
||||
const char* valueX_cstr = reader.GetAttribute(PropertyVectorDOM,"valueX");
|
||||
const char* valueY_cstr = reader.GetAttribute(PropertyVectorDOM,"valueY");
|
||||
const char* valueZ_cstr = reader.GetAttribute(PropertyVectorDOM,"valueZ");
|
||||
if(valueX_cstr || valueY_cstr || valueZ_cstr){
|
||||
aboutToSetValue();
|
||||
_cVec.x = reader.ContentToFloat(valueX_cstr);
|
||||
_cVec.y = reader.ContentToFloat(valueY_cstr);
|
||||
_cVec.z = reader.ContentToFloat(valueZ_cstr);
|
||||
hasSetValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Property *PropertyVector::Copy() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user