[Bf-blender-cvs] [faf29b9] temp-sybren-poselib: Allow only cameras to be assigned to the TimelineMarker.camera prop

Sybren A. Stüvel noreply at git.blender.org
Fri Sep 30 18:12:36 CEST 2016


Commit: faf29b991cd56cbb0b587e903cd3efd817298e57
Author: Sybren A. Stüvel
Date:   Fri Sep 30 15:10:14 2016 +0200
Branches: temp-sybren-poselib
https://developer.blender.org/rBfaf29b991cd56cbb0b587e903cd3efd817298e57

Allow only cameras to be assigned to the TimelineMarker.camera prop

===================================================================

M	source/blender/makesrna/intern/rna_timeline.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_timeline.c b/source/blender/makesrna/intern/rna_timeline.c
index a732b55..2c51e41 100644
--- a/source/blender/makesrna/intern/rna_timeline.c
+++ b/source/blender/makesrna/intern/rna_timeline.c
@@ -74,6 +74,7 @@ static void rna_def_timeline_marker(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE);
 	RNA_def_property_struct_type(prop, "Object");
 	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK);
+	RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Camera_object_poll");
 	RNA_def_property_ui_text(prop, "Camera", "Camera this timeline sets to active");
 #endif
 }




More information about the Bf-blender-cvs mailing list