diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-06 11:35:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-06 11:42:16 +0300 |
commit | e56ff76db5b44ae6784a26ff6daf9864b2387712 (patch) | |
tree | 03ffd243bb948574d95556f593c8770730b24e9a /source/blender/editors/object/object_ops.c | |
parent | 5faf72bb719b075e8ef4bf4371cc13c35557eba9 (diff) |
Viewport: support dropping object-data to create instances
This allows orphan object data for example (meshes, curves, etc)
to be dropped into the 3D View from the outliner,
creating a new object instance.
Previously the only way to do this was to add the same type of object
then swap it's data through the ID selector drop-down.
Diffstat (limited to 'source/blender/editors/object/object_ops.c')
-rw-r--r-- | source/blender/editors/object/object_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_ops.c b/source/blender/editors/object/object_ops.c index 92880e5a114..8b3837edce2 100644 --- a/source/blender/editors/object/object_ops.c +++ b/source/blender/editors/object/object_ops.c @@ -117,6 +117,7 @@ void ED_operatortypes_object(void) WM_operatortype_append(OBJECT_OT_add_named); WM_operatortype_append(OBJECT_OT_effector_add); WM_operatortype_append(OBJECT_OT_collection_instance_add); + WM_operatortype_append(OBJECT_OT_data_instance_add); WM_operatortype_append(OBJECT_OT_metaball_add); WM_operatortype_append(OBJECT_OT_duplicates_make_real); WM_operatortype_append(OBJECT_OT_duplicate); |