[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28219] trunk/blender/release/scripts/ui/ properties_material.py: 'Fix' [#21119] volumetric material always casts shadows
Matt Ebb
matt at mke3.net
Fri Apr 16 06:24:33 CEST 2010
Revision: 28219
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28219
Author: broken
Date: 2010-04-16 06:24:29 +0200 (Fri, 16 Apr 2010)
Log Message:
-----------
'Fix' [#21119] volumetric material always casts shadows
Revealed hidden 'options' panel for volumes too.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_material.py
Modified: trunk/blender/release/scripts/ui/properties_material.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_material.py 2010-04-16 02:14:56 UTC (rev 28218)
+++ trunk/blender/release/scripts/ui/properties_material.py 2010-04-16 04:24:29 UTC (rev 28219)
@@ -911,8 +911,34 @@
col = split.column()
col.label()
col.prop(vol, "depth_cutoff")
+
+class MATERIAL_PT_volume_options(VolumeButtonsPanel):
+ bl_label = "Options"
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
+ bl_default_closed = True
+ def draw(self, context):
+ layout = self.layout
+ mat = active_node_mat(context.material)
+ wide_ui = context.region.width > narrowui
+
+ split = layout.split()
+
+ col = split.column()
+ col.prop(mat, "traceable")
+ col.prop(mat, "full_oversampling")
+ col.prop(mat, "exclude_mist")
+
+ col = split.column()
+ col.label(text="Light Group:")
+ col.prop(mat, "light_group", text="")
+ row = col.row()
+ row.active = bool(mat.light_group)
+ row.prop(mat, "light_group_exclusive", text="Exclusive")
+
+
+
classes = [
MATERIAL_PT_context_material,
MATERIAL_PT_preview,
@@ -937,8 +963,8 @@
MATERIAL_PT_volume_shading,
MATERIAL_PT_volume_lighting,
MATERIAL_PT_volume_transp,
-
MATERIAL_PT_volume_integration,
+ MATERIAL_PT_volume_options,
MATERIAL_PT_custom_props]
More information about the Bf-blender-cvs
mailing list