Update to enum's items callback functions, context may be None.

See rBa80c1e50bc7f57bc for details.
This commit is contained in:
Bastien Montagne
2015-05-25 14:30:05 +02:00
parent c9e7c628d7
commit e44bdaac62
3 changed files with 12 additions and 6 deletions

View File

@ -76,6 +76,8 @@ def eval_bez(mat, points, t):
def curve_ob_enum(self, context):
if context is None:
return []
obs = context.scene.objects
cuobs = [(str(i), ob.name, ob.name) for i, ob in enumerate(obs) if ob.type == 'CURVE']
curve_ob_enum.temp = cuobs