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:
authorCampbell Barton <ideasman42@gmail.com>2011-11-15 06:58:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-15 06:58:06 +0400
commite6e265b2b59e02cc7816a2ed43471eca8bca0a62 (patch)
treee312d2c2f6cb1aaf79148648e5725902ab23d34e /release/scripts/startup/bl_ui/properties_data_modifier.py
parente59ab6486f9e7285815671044b785c28365d5165 (diff)
parent3442c16c09b31a23f45b23be72e6eb5ba02c7bbf (diff)
svn merge -r41779:41847 ^/trunk/blender
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_modifier.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py67
1 files changed, 67 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 7e4a7574688..d4594e84744 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -418,6 +418,73 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
row.operator("object.multires_external_save", text="Save External...")
row.label()
+ def OCEAN(self, layout, ob, md):
+ if not md.is_build_enabled:
+ layout.label("Built without OceanSim modifier")
+ return
+
+ layout.prop(md, "geometry_mode")
+
+ if md.geometry_mode == 'GENERATE':
+ row = layout.row()
+ row.prop(md, "repeat_x")
+ row.prop(md, "repeat_y")
+
+ layout.separator()
+
+ flow = layout.column_flow()
+ flow.prop(md, "time")
+ flow.prop(md, "resolution")
+ flow.prop(md, "spatial_size")
+ flow.prop(md, "depth")
+
+ layout.label("Waves:")
+
+ split = layout.split()
+
+ col = split.column()
+ col.prop(md, "choppiness")
+ col.prop(md, "wave_scale", text="Scale")
+ col.prop(md, "wave_scale_min")
+ col.prop(md, "wind_velocity")
+
+ col = split.column()
+ col.prop(md, "wave_alignment", text="Alignment")
+ sub = col.column()
+ sub.active = md.wave_alignment > 0
+ sub.prop(md, "wave_direction", text="Direction")
+ sub.prop(md, "damping")
+
+ layout.separator()
+
+ layout.prop(md, "use_normals")
+
+ row = layout.row()
+ row.prop(md, "use_foam")
+ sub = row.row()
+ sub.active = md.use_foam
+ sub.prop(md, "foam_coverage", text="Coverage")
+
+ layout.separator()
+
+ if md.is_cached:
+ layout.operator("object.ocean_bake", text="Free Bake").free = True
+ else:
+ layout.operator("object.ocean_bake")
+
+ split = layout.split()
+ split.enabled = not md.is_cached
+
+ col = split.column(align=True)
+ col.prop(md, "frame_start", text="Start")
+ col.prop(md, "frame_end", text="End")
+
+ col = split.column(align=True)
+ col.label(text="Cache path:")
+ col.prop(md, "filepath", text="")
+
+ #col.prop(md, "bake_foam_fade")
+
def PARTICLE_INSTANCE(self, layout, ob, md):
layout.prop(md, "object")
layout.prop(md, "particle_system_index", text="Particle System")