Index: source/blender/makesrna/intern/rna_object.c |
=================================================================== |
--- source/blender/makesrna/intern/rna_object.c (revision 47606) |
+++ source/blender/makesrna/intern/rna_object.c (working copy) |
@@ -2545,6 +2545,16 @@ |
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); |
RNA_def_property_ui_text(prop, "Hide", "Don't show dupli object in viewport or render"); |
+ prop = RNA_def_property(srna, "index", PROP_INT, PROP_NONE); |
+ RNA_def_property_int_sdna(prop, NULL, "index"); |
+ RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); |
+ RNA_def_property_ui_text(prop, "Index", "Index in the lowest-level dupli list"); |
+ |
+ prop = RNA_def_property(srna, "particle_index", PROP_INT, PROP_NONE); |
+ RNA_def_property_int_sdna(prop, NULL, "particle_index"); |
+ RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); |
+ RNA_def_property_ui_text(prop, "Particle Index", "Index in the lowest-level particle dupli list"); |
+ |
/* TODO: DupliObject has more properties that can be wrapped */ |
} |