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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-28 19:13:12 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-28 19:13:12 +0300
commit68abfd076b18e63ee2e78b11c73c6b988c231a4c (patch)
treefb25b8e083e702826f3caa2f72f91bfce355e1d7 /source/blender/editors/animation/drivers.c
parent59d85ae4d4da1da5186d8389b7741399827a5ff2 (diff)
Fix RMB menu insert driver not working on some buttons, passing
wrong pointer into RNA.
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index b816ffbe905..a993c4e238b 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -390,7 +390,7 @@ static int add_driver_button_exec (bContext *C, wmOperator *op)
if (all)
index= -1;
- if (ptr.data && prop && RNA_property_animateable(ptr.data, prop)) {
+ if (ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
path= RNA_path_from_ID_to_property(&ptr, prop);
if (path) {
@@ -505,7 +505,7 @@ static int copy_driver_button_exec (bContext *C, wmOperator *op)
memset(&ptr, 0, sizeof(PointerRNA));
uiAnimContextProperty(C, &ptr, &prop, &index);
- if (ptr.data && prop && RNA_property_animateable(ptr.data, prop)) {
+ if (ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
path= RNA_path_from_ID_to_property(&ptr, prop);
if (path) {
@@ -549,7 +549,7 @@ static int paste_driver_button_exec (bContext *C, wmOperator *op)
memset(&ptr, 0, sizeof(PointerRNA));
uiAnimContextProperty(C, &ptr, &prop, &index);
- if (ptr.data && prop && RNA_property_animateable(ptr.data, prop)) {
+ if (ptr.data && prop && RNA_property_animateable(&ptr, prop)) {
path= RNA_path_from_ID_to_property(&ptr, prop);
if (path) {