Commit ed5393db authored by sumpfralle's avatar sumpfralle

fixed broken "--template" commandline parameter

updated changelog for next release


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@220 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent a9a0c569
Version 0.2.2 - UNRELEASED
* fixed broken commandline parameter "--template"
* added workaround for ODE collision detection, that is broken under specific circumstances
* fixed "division by zero" error in non-ODE mode
Version 0.2.1 - 2010-03-09
* fixed code that depended on GTK 2.16 (instead of 2.12)
* view settings "light", "shadow" and "polygon fill" are now configurable
......
......@@ -900,13 +900,20 @@ class ProjectGui:
for config_name in self.processing_settings.get_config_list():
self.processing_config_selection.append_text(config_name)
def switch_processing_config(self, widget=None, index=None):
if callable(index):
index = index()
if index is None:
def switch_processing_config(self, widget=None, section=None):
if callable(section):
section = section()
if section is None:
return
if index >= 0:
section = self.processing_settings.get_config_list()[index]
if isinstance(section, basestring):
# a template may be choosen as a string via the commandline
if not section in self.processing_settings.get_config_list():
section = None
elif section == -1:
section = None
else:
section = self.processing_settings.get_config_list()[section]
if not section is None:
self.processing_settings.enable_config(section)
self._visually_enable_specific_processing_config(section)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment