[Bf-blender-cvs] [b947810291b] master: Make 'set offset from cursor' group operator internal.

Bastien Montagne noreply at git.blender.org
Sun May 28 17:37:23 CEST 2017


Commit: b947810291b16d3f304e2cd59f94c96c5f6e6f51
Author: Bastien Montagne
Date:   Sun May 28 17:35:24 2017 +0200
Branches: master
https://developer.blender.org/rBb947810291b16d3f304e2cd59f94c96c5f6e6f51

Make 'set offset from cursor' group operator internal.

This operator relies on a rather specific context setup, so it shall not
be exposed to user in 'operator search' menu etc.

Based on D2528 by Vuk Gardašević (lijenstina).

===================================================================

M	release/scripts/startup/bl_operators/object.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 3a42d8d2e78..307764205e6 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -864,7 +864,7 @@ class DupliOffsetFromCursor(Operator):
     """Set offset used for DupliGroup based on cursor position"""
     bl_idname = "object.dupli_offset_from_cursor"
     bl_label = "Set Offset From Cursor"
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'INTERNAL', 'UNDO'}
 
     @classmethod
     def poll(cls, context):




More information about the Bf-blender-cvs mailing list