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:
Diffstat (limited to 'source/blender/makesrna/intern/rna_timeline.c')
-rw-r--r--source/blender/makesrna/intern/rna_timeline.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_timeline.c b/source/blender/makesrna/intern/rna_timeline.c
index c0bd9fd92a2..223e6389942 100644
--- a/source/blender/makesrna/intern/rna_timeline.c
+++ b/source/blender/makesrna/intern/rna_timeline.c
@@ -33,16 +33,10 @@
# include "BKE_idprop.h"
# include "WM_api.h"
-static IDProperty *rna_TimelineMarker_idprops(PointerRNA *ptr, bool create)
+static IDProperty **rna_TimelineMarker_idprops(PointerRNA *ptr)
{
TimeMarker *marker = ptr->data;
-
- if (create && marker->prop == NULL) {
- IDPropertyTemplate val = {0};
- marker->prop = IDP_New(IDP_GROUP, &val, "Marker ID properties");
- }
-
- return marker->prop;
+ return &marker->prop;
}
static void rna_TimelineMarker_update(Main *UNUSED(bmain),