[TD]Revert property type changes
This commit is contained in:
committed by
Chris Hennes
parent
0ad55281ad
commit
3dc2f7b3e9
@@ -1516,8 +1516,8 @@ void DrawViewPart::resetReferenceVerts()
|
||||
void DrawViewPart::handleChangedPropertyType(Base::XMLReader &reader, const char * TypeName, App::Property * prop)
|
||||
{
|
||||
if (prop == &Direction) {
|
||||
// Direction was PropertyVector but is now PropertyDirection
|
||||
App::PropertyVector tmp;
|
||||
// Direction was PropertyVector, then briefly PropertyDirection, now back to PropertyVector
|
||||
App::PropertyDirection tmp;
|
||||
if (strcmp(tmp.getTypeId().getName(), TypeName)==0) {
|
||||
tmp.setContainer(this);
|
||||
tmp.Restore(reader);
|
||||
@@ -1528,8 +1528,8 @@ void DrawViewPart::handleChangedPropertyType(Base::XMLReader &reader, const char
|
||||
}
|
||||
|
||||
if (prop == &XDirection) {
|
||||
// XDirection was PropertyFloat but is now PropertyLength
|
||||
App::PropertyVector tmp;
|
||||
// XDirection was PropertyVector, then briefly PropertyDirection, now back to PropertyVector
|
||||
App::PropertyDirection tmp;
|
||||
if (strcmp(tmp.getTypeId().getName(), TypeName)==0) {
|
||||
tmp.setContainer(this);
|
||||
tmp.Restore(reader);
|
||||
|
||||
Reference in New Issue
Block a user