Fix broken set collection offset from cursor operator.

This commit is contained in:
Brecht Van Lommel 2018-06-01 16:10:48 +02:00
parent b3be71e07a
commit eef18d39cb
1 changed files with 3 additions and 3 deletions

View File

@ -865,7 +865,7 @@ class TransformsToDeltasAnim(Operator):
class DupliOffsetFromCursor(Operator):
"""Set offset used for DupliGroup based on cursor position"""
"""Set offset used for collection instances based on cursor position"""
bl_idname = "object.dupli_offset_from_cursor"
bl_label = "Set Offset From Cursor"
bl_options = {'INTERNAL', 'UNDO'}
@ -876,9 +876,9 @@ class DupliOffsetFromCursor(Operator):
def execute(self, context):
scene = context.scene
group = context.group
collection = context.collection
group.dupli_offset = scene.cursor_location
collection.dupli_offset = scene.cursor_location
return {'FINISHED'}