[Bf-blender-cvs] [eeabed2132f] blender2.8: Fix T58771: Wrong path to Unit Settings
Jacques Lucke
noreply at git.blender.org
Wed Dec 5 11:26:14 CET 2018
Commit: eeabed2132f98131ac896f15e68b1805e0ce69a7
Author: Jacques Lucke
Date: Wed Dec 5 11:25:39 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBeeabed2132f98131ac896f15e68b1805e0ce69a7
Fix T58771: Wrong path to Unit Settings
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4034
===================================================================
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 3e3e08459ca..9d6419ae3be 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2088,6 +2088,11 @@ static void rna_unit_system_update(Main *UNUSED(bmain), Scene *scene, PointerRNA
}
}
+static char *rna_UnitSettings_path(PointerRNA *UNUSED(ptr))
+{
+ return BLI_sprintfN("unit_settings");
+}
+
#else
/* Grease Pencil Interpolation tool settings */
@@ -3015,6 +3020,8 @@ static void rna_def_unit_settings(BlenderRNA *brna)
srna = RNA_def_struct(brna, "UnitSettings", NULL);
RNA_def_struct_ui_text(srna, "Unit Settings", "");
+ RNA_def_struct_nested(brna, srna, "Scene");
+ RNA_def_struct_path_func(srna, "rna_UnitSettings_path");
/* Units */
prop = RNA_def_property(srna, "system", PROP_ENUM, PROP_NONE);
More information about the Bf-blender-cvs
mailing list