mirror of
https://github.com/blender/blender-addons-contrib.git
synced 2025-08-16 16:14:56 +00:00
Update to enum's items
callback functions, context
may be None.
See rBa80c1e50bc7f57bc for details.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user