diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-15 20:11:52 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-15 20:12:05 +0300 |
commit | a47235f5fd5e72a32bb42b025300ea2c2c8f205f (patch) | |
tree | 6bfebf422267cbea7808e1c44971dc9d05d41270 /source | |
parent | bf83f097ad7e31aec9587b198e434861d0ee6b3a (diff) |
Add note to RNA about layer/engine macros
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index d0ee8a02596..eaa11b04ef9 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5984,6 +5984,8 @@ static void rna_def_layer_collection_mode_settings_object(BlenderRNA *brna) RNA_def_struct_sdna(srna, "CollectionEngineSettings"); RNA_def_struct_ui_text(srna, "Collections Object Mode Settings", "Object Mode specific settings for this collection"); + /* see RNA_LAYER_ENGINE_GET_SET macro */ + prop = RNA_def_property(srna, "foo", PROP_INT, PROP_NONE); RNA_def_property_ui_text(prop, "Foo", ""); RNA_def_property_int_funcs(prop, "rna_LayerEngineSettings_ObjectMode_foo_get", "rna_LayerEngineSettings_ObjectMode_foo_set", NULL); @@ -6002,6 +6004,8 @@ static void rna_def_layer_collection_mode_settings_edit(BlenderRNA *brna) RNA_def_struct_sdna(srna, "CollectionEngineSettings"); RNA_def_struct_ui_text(srna, "Collections Edit Mode Settings", "Edit Mode specific settings for this collection"); + /* see RNA_LAYER_ENGINE_GET_SET macro */ + prop = RNA_def_property(srna, "bar", PROP_FLOAT, PROP_NONE); RNA_def_property_ui_text(prop, "Bar Object Setting", "Temporary settings"); RNA_def_property_float_funcs(prop, "rna_LayerEngineSettings_EditMode_bar_get", "rna_LayerEngineSettings_EditMode_bar_set", NULL); |