diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 19:51:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 20:23:31 +0300 |
commit | 1860441ee7cd4ec75c99cc372fccec839c525f46 (patch) | |
tree | fe8ef38166fce2ff001b2b92dcc77458526e4ebc /object_fracture | |
parent | fef2540b25775c3e1e4012bec35ddb8695daa209 (diff) |
Use collection and instance terminology in Python API
This follows naming convention agreed on in T56648.
Diffstat (limited to 'object_fracture')
-rw-r--r-- | object_fracture/fracture_ops.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py index f5687e3a..d2f88159 100644 --- a/object_fracture/fracture_ops.py +++ b/object_fracture/fracture_ops.py @@ -317,7 +317,7 @@ def fracture_group(context, group): and (len(ob.users_group) == 0 or ob.users_group[0].name != group)): tobesplit.append(ob) - cutters = bpy.data.groups[group].objects + cutters = bpy.data.collections[group].objects # @todo This can be optimized. # Avoid booleans on obs where bbox doesn't intersect. @@ -407,7 +407,7 @@ class FractureGroup(bpy.types.Operator): description="Specify the group used for fracturing") # e = [] -# for i, g in enumerate(bpy.data.groups): +# for i, g in enumerate(bpy.data.collections): # e.append((g.name, g.name, '')) # group = EnumProperty(name='Group (hit F8 to refresh list)', # items=e, @@ -431,7 +431,7 @@ class FractureGroup(bpy.types.Operator): def draw(self, context): layout = self.layout layout.prop(self, "exe") - layout.prop_search(self, "group", bpy.data, "groups") + layout.prop_search(self, "group", bpy.data, "collections") ##################################################################### # Import Functions |