KelSolaar / sIBL_GUI

sIBL_GUI - HDRI Lighting with Smart IBL.
http://www.hdrlabs.com/
GNU General Public License v3.0
27 stars 6 forks source link

Handle exception in "loaderScriptOptions" Component when an attribute has undefined type. #177

Closed KelSolaar closed 11 years ago

KelSolaar commented 11 years ago
Stack Trace
_________________________________
0   <type 'exceptions.UnboundLocalError'>
1   
2   Traceback (most recent call last):
3   .. File "<string>", line 312, in <module>
4   .. File "<string>", line 309, in main
5   .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\engine.py", line 1860, in run
6   .... RuntimeGlobals.engine = engine(None, componentsPaths, requisiteComponents, visibleComponents)
7   .. File "<string>", line 184, in __init__
8   .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\engine.py", line 425, in __init__
9   .... hasattr(interface, "onStartup") and interface.onStartup()
10  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/core/templatesOutliner\templatesOutliner.py", line 1038, in onStartup
11  .... self.__view.restoreModelSelection()
12  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\core\templatesOutliner\views.py", line 234, in restoreModelSelection
13  .... return self.selectIndexes(indexes)
14  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\ui\views.py", line 383, in selectIndexes
15  .... return self.selectViewIndexes(indexes, flags)
16  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\ui\views.py", line 371, in selectViewIndexes
17  .... self.selectionModel().select(selection, flags)
18  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/addons/loaderScriptOptions\loaderScriptOptions.py", line 993, in __templatesOutliner_view_selectionModel__selectionChanged
19  .... self.__views_setUi()
20  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/addons/loaderScriptOptions\loaderScriptOptions.py", line 952, in __views_setUi
21  .... self.__commonView, commonAttributesOverrides)
22  .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/addons/loaderScriptOptions\loaderScriptOptions.py", line 879, in __view_setUi
23  .... item.data = attributeCompound
24  UnboundLocalError: local variable 'item' referenced before assignment