diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-02 21:15:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-02 21:15:24 +0400 |
commit | 1e18da32fb3df5d491201770d10992f0b975650b (patch) | |
tree | 3c2efd537a5fcda4a5b9de57bc04c5905c984c02 /source/blender/editors/include/ED_object.h | |
parent | aa43cab8206a07a37dacb4e606ef6112c1054587 (diff) |
replace:
CTX_data_pointer_get_type(C, "object", &RNA_Object).data
with api call:
ED_object_context(C)
... since getting the context object is such a common operation.
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r-- | source/blender/editors/include/ED_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index 5c7d9249c5f..51d3c3f021b 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -56,7 +56,8 @@ struct wmOperator; struct wmOperatorType; /* object_edit.c */ -struct Object *ED_object_active_context(struct bContext *C); +struct Object *ED_object_context(struct bContext *C); /* context.object */ +struct Object *ED_object_active_context(struct bContext *C); /* context.object or context.active_object */ /* object_ops.c */ void ED_operatortypes_object(void); |