diff options
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_operators/presets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py index 8b0ed7d9942..f89792bea6e 100644 --- a/release/scripts/startup/bl_operators/presets.py +++ b/release/scripts/startup/bl_operators/presets.py @@ -253,7 +253,7 @@ class AddPresetCamera(AddPresetBase, Operator): preset_menu = "CAMERA_MT_presets" preset_defines = [ - "cam = bpy.context.object.data" + "cam = bpy.context.camera" ] preset_subdir = "camera" @@ -352,7 +352,7 @@ class AddPresetSunSky(AddPresetBase, Operator): preset_menu = "LAMP_MT_sunsky_presets" preset_defines = [ - "sky = bpy.context.object.data.sky" + "sky = bpy.context.lamp.sky" ] preset_values = [ |