Patch #21011: Tweaks to Sky/Atmosphere presets
authorJoshua Leung <aligorith@gmail.com>
Sun, 7 Feb 2010 22:26:37 +0000 (22:26 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 7 Feb 2010 22:26:37 +0000 (22:26 +0000)
Patch by Daniel Salazar - ZanQdo

- Do not change save the distance factor since this is not relevant as a preset, it should stay at what ever the user
set it to work with that particular scene
- fixed a tooltip

release/scripts/op/presets.py
release/scripts/presets/sunsky/classic.py
release/scripts/presets/sunsky/desert.py
release/scripts/presets/sunsky/mountain.py

index feeb35d8659876d2c1a5d6c22fb3fa19f13d3903..f562f56575594c985b7c7eb37868318fb871aca4 100644 (file)
@@ -131,7 +131,7 @@ class AddPresetCloth(AddPresetBase):
 
 
 class AddPresetSunSky(AddPresetBase):
-    '''Add a Cloth Preset.'''
+    '''Add a Sky & Atmosphere Preset.'''
     bl_idname = "lamp.sunsky_preset_add"
     bl_label = "Add Sunsky Preset"
     name = AddPresetBase.name
@@ -148,7 +148,6 @@ class AddPresetSunSky(AddPresetBase):
         "bpy.context.object.data.sky.sun_size",
         "bpy.context.object.data.sky.backscattered_light",
         "bpy.context.object.data.sky.sun_intensity",
-        "bpy.context.object.data.sky.atmosphere_distance_factor",
         "bpy.context.object.data.sky.atmosphere_inscattering",
         "bpy.context.object.data.sky.atmosphere_extinction",
     ]
index e673b503cb2e3a966dd3476854a9249bde61eeaa..9ee35d68dadb7f20cd619aef86076e89e4d03958 100644 (file)
@@ -9,6 +9,5 @@ bpy.context.object.data.sky.sun_brightness = 1.00000011921
 bpy.context.object.data.sky.sun_size = 1.00000166893
 bpy.context.object.data.sky.backscattered_light = 0.0
 bpy.context.object.data.sky.sun_intensity = 4.0
-bpy.context.object.data.sky.atmosphere_distance_factor = 0.0
 bpy.context.object.data.sky.atmosphere_inscattering = 1.0
 bpy.context.object.data.sky.atmosphere_extinction = 1.0
index f971571d2811ee3835cd2dd6eb3d951a81de126e..26ed4527746ef80c7c1e2828e6bdaafe33dd57b8 100644 (file)
@@ -9,6 +9,5 @@ bpy.context.object.data.sky.sun_brightness = 1.00000011921
 bpy.context.object.data.sky.sun_size = 4.0
 bpy.context.object.data.sky.backscattered_light = 1.0
 bpy.context.object.data.sky.sun_intensity = 1.0
-bpy.context.object.data.sky.atmosphere_distance_factor = 0.0
 bpy.context.object.data.sky.atmosphere_inscattering = 1.0
 bpy.context.object.data.sky.atmosphere_extinction = 1.0
index 65564541657b6cf222511b9758356f079487290b..e35d39440424e25c8272edcd2a37b2ff637eb20f 100644 (file)
@@ -9,6 +9,5 @@ bpy.context.object.data.sky.sun_brightness = 1.99999988079
 bpy.context.object.data.sky.sun_size = 4.0
 bpy.context.object.data.sky.backscattered_light = -1.0
 bpy.context.object.data.sky.sun_intensity = 10.0
-bpy.context.object.data.sky.atmosphere_distance_factor = 0.0
 bpy.context.object.data.sky.atmosphere_inscattering = 1.0
 bpy.context.object.data.sky.atmosphere_extinction = 1.0