ScaleType/Scale linkage & PropertyEditor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user