diff options
-rw-r--r-- | doc/python_api/examples/mathutils.py | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/python_api/examples/mathutils.py b/doc/python_api/examples/mathutils.py index dcc10c5885c..b65e61a1044 100644 --- a/doc/python_api/examples/mathutils.py +++ b/doc/python_api/examples/mathutils.py @@ -13,6 +13,6 @@ mat3 = mat.to_3x3() quat1 = mat.to_quaternion() quat2 = mat3.to_quaternion() -angle = quat1.difference(quat2) +quat_diff = quat1.rotation_difference(quat2) -print(angle) +print(quat_diff.angle) diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index c5a1db46e6c..0ae0e74e2cb 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -2807,7 +2807,8 @@ static void rna_def_userdef_filepaths(BlenderRNA *brna) prop= RNA_def_property(srna, "script_directory", PROP_STRING, PROP_DIRPATH); RNA_def_property_string_sdna(prop, NULL, "pythondir"); - RNA_def_property_ui_text(prop, "Python Scripts Directory", "The default directory to search for Python scripts (resets python module search path: sys.path)"); + RNA_def_property_ui_text(prop, "Python Scripts Directory", "Alternate script path, matching the default layout with subdirs: startup, addons & modules (requires restart)"); + /* TODO, editing should reset sys.path! */ prop= RNA_def_property(srna, "sound_directory", PROP_STRING, PROP_DIRPATH); RNA_def_property_string_sdna(prop, NULL, "sounddir"); |