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:
authorCampbell Barton <ideasman42@gmail.com>2011-11-25 01:59:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-25 01:59:43 +0400
commitf8affbb98028821d87034521e90f02de93d0f75a (patch)
tree3c8127a00c0413a4a0c1d7d460fc648d739c9957 /release/scripts/startup/bl_operators/clip.py
parent64008199b9e706b256a18a8c38605ade8b961293 (diff)
skip importing shutil on load.
Diffstat (limited to 'release/scripts/startup/bl_operators/clip.py')
-rw-r--r--release/scripts/startup/bl_operators/clip.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index 5b724565481..269871b7230 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -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))