[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

@@ -482,8 +482,8 @@ bool DrawViewDetail::debugDetail() const
void DrawViewDetail::handleChangedPropertyType(Base::XMLReader &reader, const char * TypeName, App::Property * prop)
{
if (prop == &AnchorPoint) {
// AnchorPoint was PropertyVector but is now PropertyPosition
App::PropertyVector tmp;
// AnchorPoint was PropertyVector, then briefly PropertyPosition, now back to PropertyVector
App::PropertyPosition tmp;
if (strcmp(tmp.getTypeId().getName(), TypeName)==0) {
tmp.setContainer(this);
tmp.Restore(reader);
@@ -494,7 +494,7 @@ void DrawViewDetail::handleChangedPropertyType(Base::XMLReader &reader, const ch
}
if (prop == &Radius) {
// Radius was PropertyFloat but is now PropertyLength
// Radius was PropertyFloat, then briefly PropertyLength, now back to PropertyFloat
App::PropertyLength tmp;
if (strcmp(tmp.getTypeId().getName(), TypeName)==0) {
tmp.setContainer(this);