Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-07-17 16:26:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-17 16:26:40 +0400
commita705f6424567873b64f6309311106ec1e918b4e0 (patch)
tree076fc80e7cdd8b19737a01a79c94c687dfca1b0f /release/ui/buttons_object_constraint.py
parent1ef729358517248888073be71ba5d3b6e3d723ee (diff)
python access to operators now hides the _OT_ syntax, eg. SOME_OT_operator -> some.operator
this works for the calling operators from python and using the RNA api. bpy.ops.CONSOLE_exec() is now bpy.ops.console.exec() eg. split.itemO("PARTICLE_OT_editable_set", text="Free Edit") becomes... split.itemO("particle.editable_set", text="Free Edit") For now any operator thats called checks if its missing _OT_ and assumes its python syntax and converts it before doing the lookup. bpy.ops is a python class in release/ui/bpy_ops.py which does the fake submodules and conversion, the C operator api is at bpy.__ops__ personally Id still rather rename C id-names not to contain the _OT_ text which would avoid the conversion, its called a lot since the UI has to convert the operators.
Diffstat (limited to 'release/ui/buttons_object_constraint.py')
-rw-r--r--release/ui/buttons_object_constraint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py
index c0e2bd0250a..2bd24f3f176 100644
--- a/release/ui/buttons_object_constraint.py
+++ b/release/ui/buttons_object_constraint.py
@@ -110,8 +110,8 @@ class ConstraintButtonsPanel(bpy.types.Panel):
sub.itemR(con, "sizez", text="Z")
row = layout.row()
- row.itemO("CONSTRAINT_OT_childof_set_inverse")
- row.itemO("CONSTRAINT_OT_childof_clear_inverse")
+ row.itemO("constraint.childof_set_inverse")
+ row.itemO("constraint.childof_clear_inverse")
def track_to(self, layout, con):
self.target_template(layout, con)
@@ -521,7 +521,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel):
layout = self.layout
row = layout.row()
- row.item_menu_enumO("OBJECT_OT_constraint_add", "type")
+ row.item_menu_enumO("objects.constraint_add", "type")
row.itemL();
for con in ob.constraints:
@@ -542,7 +542,7 @@ class BONE_PT_constraints(ConstraintButtonsPanel):
layout = self.layout
row = layout.row()
- row.item_menu_enumO("POSE_OT_constraint_add", "type")
+ row.item_menu_enumO("pose.constraint_add", "type")
row.itemL();
for con in pchan.constraints: