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

Fix node selection related exception in "inspector" Component. #133

Closed KelSolaar closed 12 years ago

KelSolaar commented 12 years ago

"inspector" Component "Plates" view uses a generic sIBL_GUI view that expect an "id" attribute in order to store the selected nodes. Since the "Plates" view doesn't need to store / restore any selection the related methods need to do nothing.

Traceback:

ERROR : !> **** ERROR : !> Exception in 'sibl_gui.ui.views | storeDefaultViewModelSelection()'. ERROR : !> Exception class: 'AttributeError'. ERROR : !> Exception description: 'Attribute not found.'. ERROR : !> Exception message line nº '1' : ''PlatesNode' object has no attribute 'id''. ERROR : !> **** Traceback (most recent call last): File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sIBL_GUI.py", line 444, in ("core.databaseBrowser",)) File "/Users/KelSolaar/Documents/Developement/sIBLGUI/src/umbra/engine.py", line 2080, in run return sys.exit(RuntimeGlobals.application.exec()) File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/inspector.py", line 1139, in __Previous_Ibl_Set_pushButtonclicked self.loopThroughIblSets(True) File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/inspector.py", line 1360, in loopThroughIblSets selectionModel.clear() File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/inspector.py", line 1124, in coreDatabaseBrowser_view_selectionModelselectionChanged self.modelRefresh.emit() File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/inspector.py", line 1177, in inspectormodelRefresh self.setPlates() File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/inspector.py", line 1329, in setPlates self.model.initializeModel(rootNode) File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/components/core/inspector/models.py", line 211, in initializeModel self.beginResetModel() File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/ui/views.py", line 212, in modelmodelAboutToBeReset self.storeModelSelection() File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/ui/views.py", line 231, in storeModelSelection return storeDefaultViewModelSelection(self) File "/Users/KelSolaar/Documents/Developement/sIBL_GUI/src/sibl_gui/ui/views.py", line 88, in storeDefaultViewModelSelection view.modelSelection["Default"].append(node.id.value) AttributeError: 'PlatesNode' object has no attribute 'id'