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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
commit0457976a872000993202763abe7503c76b461122 (patch)
treea4998fbbb768c43eb00b55ba311d497fd74eadcd /io_import_images_as_planes.py
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 88cee32a..58cb6b67 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -869,14 +869,14 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
self.relative = False
# this won't work in edit mode
- editmode = context.user_preferences.edit.use_enter_edit_mode
- context.user_preferences.edit.use_enter_edit_mode = False
+ editmode = context.preferences.edit.use_enter_edit_mode
+ context.preferences.edit.use_enter_edit_mode = False
if context.active_object and context.active_object.mode == 'EDIT':
bpy.ops.object.mode_set(mode='OBJECT')
self.import_images(context)
- context.user_preferences.edit.use_enter_edit_mode = editmode
+ context.preferences.edit.use_enter_edit_mode = editmode
return {'FINISHED'}