skip importing shutil on load.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 24 Nov 2011 21:59:43 +0000 (21:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 24 Nov 2011 21:59:43 +0000 (21:59 +0000)
release/scripts/startup/bl_operators/clip.py

index 5b7245654819bef5be4fd14cf171bfa8bf6b7e00..269871b72305b5e5afc12892c5b20bad2330e2d2 100644 (file)
@@ -19,9 +19,7 @@
 # <pep8 compliant>
 import bpy
 import os
-import shutil
 from bpy.types import Operator
-from bpy_extras.io_utils import unpack_list, unpack_face_list
 
 from mathutils import Vector, Matrix
 
@@ -128,6 +126,8 @@ class CLIP_OT_bundles_to_mesh(Operator):
         return (sc.type == 'CLIP_EDITOR') and sc.clip
 
     def execute(self, context):
+        from bpy_extras.io_utils import unpack_list
+
         sc = context.space_data
         clip = sc.clip
 
@@ -171,6 +171,8 @@ class CLIP_OT_delete_proxy(Operator):
         return wm.invoke_confirm(self, event)
 
     def _rmproxy(self, abspath):
+        import shutil
+
         if not os.path.exists(abspath):
             return
 
@@ -648,6 +650,8 @@ class CLIP_OT_setup_tracking_scene(Operator):
 
     @staticmethod
     def _createMesh(scene, name, vertices, faces):
+        from bpy_extras.io_utils import unpack_list, unpack_face_list
+
         mesh = bpy.data.meshes.new(name=name)
 
         mesh.vertices.add(len(vertices))