[TD]Revert property type changes
This commit is contained in:
committed by
Chris Hennes
parent
0ad55281ad
commit
3dc2f7b3e9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user