diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-12 10:57:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-12 10:57:00 +0400 |
commit | b374ab919a4b46d377d88ad0f1f1eced06621eca (patch) | |
tree | 7eadaebf4beaa0fb9cb2a47e5081fbbbffb4f9b7 /release/scripts/startup/bl_operators/uvcalc_smart_project.py | |
parent | 8fd246cb708569eff223c2da145395cc5ef99402 (diff) |
import common classes from bpy.types, saves ~1000 python getattrs on startup.
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_smart_project.py')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_smart_project.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py index 851f33bde11..67c2f5d001b 100644 --- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py +++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py @@ -20,6 +20,7 @@ from mathutils import Matrix, Vector, geometry import bpy +from bpy.types import Operator DEG_TO_RAD = 0.017453292519943295 # pi/180.0 SMALL_NUM = 0.000000001 @@ -1116,7 +1117,7 @@ def main(context, from bpy.props import FloatProperty -class SmartProject(bpy.types.Operator): +class SmartProject(Operator): '''This script projection unwraps the selected faces of a mesh. it operates on all selected mesh objects, and can be used unwrap selected faces, or all faces.''' bl_idname = "uv.smart_project" bl_label = "Smart UV Project" |