[TD]Revert property type changes

This commit is contained in:
wandererfan
2025-07-04 13:30:18 -04:00
committed by Chris Hennes
parent 0ad55281ad
commit 3dc2f7b3e9
6 changed files with 20 additions and 20 deletions

View File

@@ -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);