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>2018-05-02 18:59:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-03 08:09:22 +0300
commitf5cb96704bcdbd94cc7dacfef51c8028c28f4c4d (patch)
tree26cdbbf3e7bacfefd5fa4e0151436f3d75436cea /source/blender/makesrna/intern/rna_wm_api.c
parente4774c0b2d02d3231c1bdc0097d879b77daa5651 (diff)
WM: add function to access last_properties
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index a0f864d841d..ba955d65ac5 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -389,13 +389,8 @@ static PointerRNA rna_WindoManager_operator_properties_last(const char *idname)
wmOperatorType *ot = WM_operatortype_find(idname, true);
if (ot != NULL) {
- /* Could make optional. */
- if (ot->last_properties == NULL) {
- IDPropertyTemplate val = {0};
- ot->last_properties = IDP_New(IDP_GROUP, &val, "wmOperatorProperties");
- }
PointerRNA ptr;
- RNA_pointer_create(NULL, ot->srna, ot->last_properties, &ptr);
+ WM_operator_last_properties_ensure(ot, &ptr);
return ptr;
}
return PointerRNA_NULL;