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:
authorDamien Picard <dam.pic@free.fr>2019-12-12 18:29:19 +0300
committerDamien Picard <dam.pic@free.fr>2019-12-13 13:32:18 +0300
commit2c10504944c3ce3973404252ba9a1bdb45082daf (patch)
tree13d8fdf7c96abdea0d73d293d6c6770bf529fe2a /sun_position
parentdbc441d58a337cd9e3d587563bd55670edcbcd1d (diff)
sun_position: rename Ecliptic to Diurnal
The name "Ecliptic" for the Sun trajectory visualization was wrong. I renamed it to "Diurnal" because it actually visualizes the apparent trajectory of the Sun in one single day.
Diffstat (limited to 'sun_position')
-rw-r--r--sun_position/properties.py12
-rw-r--r--sun_position/sun_calc.py4
-rw-r--r--sun_position/ui_sun.py2
3 files changed, 9 insertions, 9 deletions
diff --git a/sun_position/properties.py b/sun_position/properties.py
index 125b871a..f20991f1 100644
--- a/sun_position/properties.py
+++ b/sun_position/properties.py
@@ -157,17 +157,17 @@ class SunPosProperties(PropertyGroup):
object_collection: PointerProperty(
type=bpy.types.Collection,
- description="Collection of objects used for analemma",
+ description="Collection of objects used to visualize sun motion",
update=sun_update)
object_collection_type: EnumProperty(
name="Display type",
- description="Show object group on ecliptic or as analemma",
+ description="Show object group as sun motion",
items=(
- ('ECLIPTIC', "On the Ecliptic", ""),
- ('ANALEMMA', "As Analemma", ""),
+ ('ANALEMMA', "Analemma", ""),
+ ('DIURNAL', "Diurnal", ""),
),
- default='ECLIPTIC',
+ default='ANALEMMA',
update=sun_update)
use_sky_texture: BoolProperty(
@@ -214,7 +214,7 @@ class SunPosProperties(PropertyGroup):
time_spread: FloatProperty(
name="Time Spread",
- description="Time period in which to spread object group",
+ description="Time period in which to spread object collection",
precision=4,
soft_min=1.0, soft_max=24.0, step=1.0, default=23.0,
update=sun_update)
diff --git a/sun_position/sun_calc.py b/sun_position/sun_calc.py
index 5631ac0b..78e9ff85 100644
--- a/sun_position/sun_calc.py
+++ b/sun_position/sun_calc.py
@@ -178,8 +178,8 @@ def move_sun(context):
and sun_props.object_collection):
sun_objects = sun_props.object_collection.objects
object_count = len(sun_objects)
- if sun_props.object_collection_type == 'ECLIPTIC':
- # Ecliptic
+ if sun_props.object_collection_type == 'DIURNAL':
+ # Diurnal motion
if object_count > 1:
time_increment = sun_props.time_spread / (object_count - 1)
local_time = local_time + time_increment * (object_count - 1)
diff --git a/sun_position/ui_sun.py b/sun_position/ui_sun.py
index 919e6e77..e2244201 100644
--- a/sun_position/ui_sun.py
+++ b/sun_position/ui_sun.py
@@ -185,7 +185,7 @@ class SUNPOS_PT_Panel(bpy.types.Panel):
col.prop(sp, "object_collection", text="")
if sp.object_collection:
col.prop(sp, "object_collection_type")
- if sp.object_collection_type == 'ECLIPTIC':
+ if sp.object_collection_type == 'DIURNAL':
col.prop(sp, "time_spread")
col.separator()