Page MenuHome

AddBox needs a layers property for object_utils.object_data_add

Authored by Campbell Barton (campbellbarton) on Mar 21 2016, 1:43 PM.



layers property in Operator needed, otherwise object_data_add throws an exception

Diff Detail

rB Blender
pyfix (branched from master)

Event Timeline

bassam kurdali (bassamk) retitled this revision from to AddBox needs a layers property for object_utils.object_data_add.Mar 21 2016, 1:43 PM
bassam kurdali (bassamk) updated this object.
bassam kurdali (bassamk) updated this revision to Diff 6280.

you can also change line 101

object_utils.object_data_add(context, mesh, operator=self)


object_utils.object_data_add(context, mesh, operator=None)

to fix the error.

  • remove operator argument instead
  • removed operator instead and removed trailing paren
This revision is now accepted and ready to land.Mar 23 2016, 10:14 AM
This revision now requires review to proceed.Mar 23 2016, 10:14 AM

Thanks, both of you!