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-11-24 02:17:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-24 02:17:23 +0300
commite968017951f8b38d4c33aac4225758687ba1e7d3 (patch)
treeb6f4bcd50b7cc24ce39fdedca0feb75c590ee41c /release/scripts/modules/rna_prop_ui.py
parentb7d717cead9000c4600d71ed15fc10ebc103c591 (diff)
- new pyrna api functions srna & prop path_to_id(), useful when setting driver target paths.
This means you can have a pose bone for eg and get the path... pose.bones["Bone"] uses rna internal functions, so will work for sequence strips etc. - StructRNA.get(), used for getting ID props without exceptions... val = C.object["someKey"] or.. val = C.object.get("someKey", "defaultValue") # wont raise an error - change rna property for testing if rna props are editable, test the flag rather then calling the function since the function depends on blenders state. - fix a python exception with the ID-Property popup UI (when editing in more then 1 step)
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r--release/scripts/modules/rna_prop_ui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index ef853b395ea..3c12d4304d1 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -177,6 +177,7 @@ class WM_OT_properties_edit(bpy.types.Operator):
exec_str = "item['%s'] = %s" % (prop, value_eval)
# print(exec_str)
exec(exec_str)
+ self._last_prop[:] = [prop]
prop_type = type(item[prop])