Now using id property setters in Python Summary API

This commit is contained in:
wbinventor@gmail.com 2015-12-21 14:25:42 -05:00
parent b671b1a299
commit ffd0070654
2 changed files with 5 additions and 9 deletions

View file

@ -194,10 +194,6 @@ class Material(object):
def id(self, material_id):
global AUTO_MATERIAL_ID, MATERIAL_IDS
# If the Material already has an ID, remove it from global list
if hasattr(self, '_id') and self._id is not None:
MATERIAL_IDS.remove(self._id)
if material_id is None:
self._id = AUTO_MATERIAL_ID
MATERIAL_IDS.append(AUTO_MATERIAL_ID)