Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-17 18:03:40 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-17 18:03:40 +0400
commitf94b87bbb89b2350be2f5b26c2afb2372fd9d99c (patch)
treea9f96351ba4b8e1e21f1d64c14e861d948c8358e /release
parentab5f4c4dfad3880f60c8555437aeb0c9ba85cd1e (diff)
New python API for units handling.
Exposes all supported unit systems & types, and to_value()/to_string() functions. Reviewed and enhanced by CampbellBarton, many thanks! Differential Revision: https://developer.blender.org/D416
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index ce1efa43b3e..5621af29bc3 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -44,6 +44,7 @@ __all__ = (
"script_paths",
"smpte_from_frame",
"smpte_from_seconds",
+ "units",
"unregister_class",
"unregister_module",
"user_resource",
@@ -58,6 +59,7 @@ from _bpy import (
)
from _bpy import script_paths as _bpy_script_paths
from _bpy import user_resource as _user_resource
+from _bpy import _utils_units as units
import bpy as _bpy
import os as _os