ScaleType/Scale linkage & PropertyEditor

This commit is contained in:
WandererFan
2016-03-06 19:56:03 -05:00
committed by wmayer
parent 8a9c708659
commit af7d7f3118
4 changed files with 30 additions and 42 deletions

View File

@@ -126,11 +126,6 @@ void DrawViewCollection::onChanged(const App::Property* prop)
App::DocumentObjectExecReturn *DrawViewCollection::execute(void)
{
if (ScaleType.isValue("Document")) {
// Recalculate scale
//Scale.StatusBits.set(App::Prop_ReadOnly);
Scale.setStatus(App::Property::ReadOnly,true);
const std::vector<App::DocumentObject *> &views = Views.getValues();
for(std::vector<App::DocumentObject *>::const_iterator it = views.begin(); it != views.end(); ++it) {
App::DocumentObject *docObj = *it;
@@ -143,10 +138,7 @@ App::DocumentObjectExecReturn *DrawViewCollection::execute(void)
}
}
} else if(strcmp(ScaleType.getValueAsString(), "Custom") == 0) {
// Rebuild the view
//Scale.StatusBits.set(App::Prop_ReadOnly, false);
Scale.setStatus(App::Property::ReadOnly,false);
// Rebuild the views
const std::vector<App::DocumentObject *> &views = Views.getValues();
for(std::vector<App::DocumentObject *>::const_iterator it = views.begin(); it != views.end(); ++it) {
App::DocumentObject *docObj = *it;