Skip to content

Commit

Permalink
- string properties update bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trusty120383 committed Jan 23, 2018
1 parent 068cbce commit c9f04fe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ModelExplorerPlugin/ObjectPropertyView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,7 @@ void ObjectPropertyView::resetUserAttribute(QtProperty* userAttributeProperty)
auto pOperation = createOperation();
pOperation->Start();

if (pProperty->GetType() == Renga::PropertyType::PropertyType_Double)
pProperty->SetDoubleValue(0.);
else if (pProperty->GetType() == Renga::PropertyType::PropertyType_String)
pProperty->SetStringValue(L"");
pProperty->ResetValue();

pOperation->Apply();
}
Expand All @@ -237,7 +234,7 @@ void ObjectPropertyView::changeUserAttribute(QtProperty* userAttributeProperty,
if (!pProperty)
return;

if (pProperty->GetType() != Renga::PropertyType::PropertyType_Double)
if (pProperty->GetType() != Renga::PropertyType::PropertyType_String)
return;

auto pOperation = createOperation();
Expand Down

0 comments on commit c9f04fe

Please sign in to comment.