fix for keying set rna path attribute and object select menu incorrect args to UI...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 24 Mar 2010 15:08:15 +0000 (15:08 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 24 Mar 2010 15:08:15 +0000 (15:08 +0000)
release/scripts/keyingsets/keyingsets_utils.py
release/scripts/ui/space_dopesheet.py
release/scripts/ui/space_graph.py
release/scripts/ui/space_image.py
release/scripts/ui/space_nla.py
release/scripts/ui/space_view3d.py

index 2097018fffbac36a580d4a34b24c01a6e849f43d..810b23b9e4ab1867d5628028ba7d25dc90e6cc16 100644 (file)
@@ -70,7 +70,7 @@ def RKS_GEN_available(ksi, context, ks, data):
     # for each F-Curve, include an path to key it
     # NOTE: we don't need to set the group settings here
     for fcu in adt.action.fcurves:
-        ks.add_path(id_block, fcu.rna_path, index=fcu.array_index)
+        ks.add_path(id_block, fcu.data_path, index=fcu.array_index)
     
 # ------
 
index a98f142cc3ad87399482a67c415416eb949f4dc8..e8e2466f049d1b760f58c722913ed79672aa3573 100644 (file)
@@ -155,8 +155,8 @@ class DOPESHEET_MT_key(bpy.types.Menu):
         layout.column()
         layout.menu("DOPESHEET_MT_key_transform", text="Transform")
 
-        layout.operator_menu_enum("action.snap", property="type", text="Snap")
-        layout.operator_menu_enum("action.mirror", property="type", text="Mirror")
+        layout.operator_menu_enum("action.snap", "type", text="Snap")
+        layout.operator_menu_enum("action.mirror", "type", text="Mirror")
 
         layout.separator()
         layout.operator("action.keyframe_insert")
@@ -166,10 +166,10 @@ class DOPESHEET_MT_key(bpy.types.Menu):
         layout.operator("action.delete")
 
         layout.separator()
-        layout.operator_menu_enum("action.keyframe_type", property="type", text="Keyframe Type")
-        layout.operator_menu_enum("action.handle_type", property="type", text="Handle Type")
-        layout.operator_menu_enum("action.interpolation_type", property="type", text="Interpolation Mode")
-        layout.operator_menu_enum("action.extrapolation_type", property="type", text="Extrapolation Mode")
+        layout.operator_menu_enum("action.keyframe_type", "type", text="Keyframe Type")
+        layout.operator_menu_enum("action.handle_type", "type", text="Handle Type")
+        layout.operator_menu_enum("action.interpolation_type", "type", text="Interpolation Mode")
+        layout.operator_menu_enum("action.extrapolation_type", "type", text="Extrapolation Mode")
 
         layout.separator()
         layout.operator("action.clean")
index a5abe6ffd913fcb0b9bf7fad467e38f9654a8b0e..cdf7f653eb68d3b26bd76e3783637f941439dd54 100644 (file)
@@ -161,8 +161,8 @@ class GRAPH_MT_key(bpy.types.Menu):
         layout.column()
         layout.menu("GRAPH_MT_key_transform", text="Transform")
 
-        layout.operator_menu_enum("graph.snap", property="type", text="Snap")
-        layout.operator_menu_enum("graph.mirror", property="type", text="Mirror")
+        layout.operator_menu_enum("graph.snap", "type", text="Snap")
+        layout.operator_menu_enum("graph.mirror", "type", text="Mirror")
 
         layout.separator()
         layout.operator("graph.keyframe_insert")
@@ -173,9 +173,9 @@ class GRAPH_MT_key(bpy.types.Menu):
         layout.operator("graph.delete")
 
         layout.separator()
-        layout.operator_menu_enum("graph.handle_type", property="type", text="Handle Type")
-        layout.operator_menu_enum("graph.interpolation_type", property="type", text="Interpolation Mode")
-        layout.operator_menu_enum("graph.extrapolation_type", property="type", text="Extrapolation Mode")
+        layout.operator_menu_enum("graph.handle_type", "type", text="Handle Type")
+        layout.operator_menu_enum("graph.interpolation_type", "type", text="Interpolation Mode")
+        layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode")
 
         layout.separator()
         layout.operator("graph.clean")
index ac6a0f3032487f6dbe8734a280ee4443ef89e08c..4b4ff15014db5a46371dea0ce8add7762648b760 100644 (file)
@@ -586,7 +586,7 @@ class IMAGE_PT_paint_curve(bpy.types.Panel):
         brush = toolsettings.brush
 
         layout.template_curve_mapping(brush, "curve")
-        layout.operator_menu_enum("brush.curve_preset", property="shape")
+        layout.operator_menu_enum("brush.curve_preset", "shape")
 
 
 classes = [
index 12ed8aa77407e4ae1abe1dcd39e4280d573af3f0..0eb342d4b158f8ce9d25a9eaede6abb879e9d22d 100644 (file)
@@ -102,7 +102,7 @@ class NLA_MT_edit(bpy.types.Menu):
         layout.column()
         layout.menu("NLA_MT_edit_transform", text="Transform")
 
-        layout.operator_menu_enum("nla.snap", property="type", text="Snap")
+        layout.operator_menu_enum("nla.snap", "type", text="Snap")
 
         layout.separator()
         layout.operator("nla.duplicate")
index 2e10470c5f739b8c2110e919a8af5e874ae45bb2..eced38edb533104f99e36d69e84b16618620cc05 100644 (file)
@@ -384,7 +384,7 @@ class VIEW3D_MT_select_object(bpy.types.Menu):
         layout.operator("object.select_random", text="Random")
         layout.operator("object.select_mirror", text="Mirror")
         layout.operator("object.select_by_layer", text="Select All by Layer")
-        layout.operator_menu_enum("object.select_by_type", "type", "", text="Select All by Type...")
+        layout.operator_menu_enum("object.select_by_type", "type", text="Select All by Type...")
         layout.operator("object.select_camera", text="Select Camera")
 
         layout.separator()
@@ -834,7 +834,7 @@ class VIEW3D_MT_make_links(bpy.types.Menu):
 
         layout.operator_menu_enum("object.make_links_scene", "type", text="Objects to Scene...")
         layout.operator_menu_enum("marker.make_links_scene", "type", text="Markers to Scene...")
-        layout.operator_enums("object.make_links_data", property="type") # inline
+        layout.operator_enums("object.make_links_data", "type") # inline
 
 
 # ********** Vertex paint menu **********
@@ -930,7 +930,7 @@ class VIEW3D_MT_sculpt(bpy.types.Menu):
         layout.prop(sculpt, "lock_y")
         layout.prop(sculpt, "lock_z")
         layout.separator()
-        layout.operator_menu_enum("brush.curve_preset", property="shape")
+        layout.operator_menu_enum("brush.curve_preset", "shape")
         layout.separator()
 
         sculpt_tool = brush.sculpt_tool