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>2019-10-31 10:01:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-31 10:01:58 +0300
commit2e2fd12a55038b5e520720efe76bd0a1c2059fc1 (patch)
tree8b7eb838e6795062c4dbfe9cd6514db0ad957828 /release/scripts/startup/bl_operators/presets.py
parent3252ef4aca7a112fa5c2c00567c455bd27c9d963 (diff)
Cleanup: comments for is_path_builtin
Also reduce scope of import.
Diffstat (limited to 'release/scripts/startup/bl_operators/presets.py')
-rw-r--r--release/scripts/startup/bl_operators/presets.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index 235f92bd360..deb33f77050 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -29,8 +29,6 @@ from bpy.props import (
StringProperty,
)
-from bpy.utils import is_path_builtin
-
# For preset popover menu
WindowManager.preset_name = StringProperty(
name="Preset Name",
@@ -86,6 +84,7 @@ class AddPresetBase:
def execute(self, context):
import os
+ from bpy.utils import is_path_builtin
if hasattr(self, "pre_cb"):
self.pre_cb(context)