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:
authorJanne Karhu <jhkarh@gmail.com>2012-03-20 05:00:28 +0400
committerJanne Karhu <jhkarh@gmail.com>2012-03-20 05:00:28 +0400
commitfcd5550a4248e00bbfb739352718d211b73259df (patch)
tree5fb472309322f0f96775c229af52cdc9c52101fb /release
parent1362523ce68122265e430d33cc88373e518d04bd (diff)
Some advanced particle rotation modes and reorganization of the rotation panel:
- More angular velocity modes to support creative effects. - Renamed "Initial Rotation" to "Initial Orientation" to better reflect the functionality - Renamed "Spin" angular velocity mode to "Velocity". - Organized the rotation panel a bit better. - Also some better names and tooltips for the different rotation values.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index c987ceb2562..78038e2c663 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -415,12 +415,7 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
layout.enabled = particle_panel_enabled(context, psys) and part.use_rotations
- layout.prop(part, "use_dynamic_rotation")
-
- if part.use_dynamic_rotation:
- layout.label(text="Initial Rotation Axis:")
- else:
- layout.label(text="Rotation Axis:")
+ layout.label(text="Initial Orientation:")
split = layout.split()
@@ -433,16 +428,17 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
col.prop(part, "phase_factor_random", text="Random", slider=True)
if part.type != 'HAIR':
- col = layout.column()
- if part.use_dynamic_rotation:
- col.label(text="Initial Angular Velocity:")
- else:
- col.label(text="Angular Velocity:")
- sub = col.row(align=True)
- sub.prop(part, "angular_velocity_mode", text="")
- subsub = sub.column()
- subsub.active = part.angular_velocity_mode != 'NONE'
- subsub.prop(part, "angular_velocity_factor", text="")
+ layout.label(text="Angular Velocity:")
+
+ split = layout.split()
+ col = split.column(align=True)
+ col.prop(part, "angular_velocity_mode", text="")
+ sub = col.column()
+ sub.active = part.angular_velocity_mode != 'NONE'
+ sub.prop(part, "angular_velocity_factor", text="")
+
+ col = split.column()
+ col.prop(part, "use_dynamic_rotation")
class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):