[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22418] branches/soc-2009-yukishiro/ release/ui/space_view3d_toolbar.py: forgot to commit py file
Jingyuan Huang
jingyuan.huang at gmail.com
Wed Aug 12 22:17:07 CEST 2009
Revision: 22418
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22418
Author: yukishiro
Date: 2009-08-12 22:17:07 +0200 (Wed, 12 Aug 2009)
Log Message:
-----------
forgot to commit py file
Modified Paths:
--------------
branches/soc-2009-yukishiro/release/ui/space_view3d_toolbar.py
Modified: branches/soc-2009-yukishiro/release/ui/space_view3d_toolbar.py
===================================================================
--- branches/soc-2009-yukishiro/release/ui/space_view3d_toolbar.py 2009-08-12 19:04:48 UTC (rev 22417)
+++ branches/soc-2009-yukishiro/release/ui/space_view3d_toolbar.py 2009-08-12 20:17:07 UTC (rev 22418)
@@ -308,6 +308,8 @@
return ts.weight_paint
elif context.texture_paint_object:
return ts.image_paint
+ elif context.light_paint_object:
+ return ts.light_paint
elif context.particle_edit_object:
return ts.particle_edit
@@ -446,6 +448,16 @@
row.itemR(brush, "strength", slider=True)
row.itemR(brush, "strength_pressure", toggle=True, icon='ICON_BRUSH_DATA', text="")
+ # Light Paint Mode #
+
+ elif context.light_paint_object:
+ col = layout.column()
+ col.itemR(brush, "color", text="")
+
+ row = col.row(align=True)
+ row.itemR(brush, "size", slider=True)
+
+
class VIEW3D_PT_tools_brush_curve(PaintPanel):
__label__ = "Curve"
__default_closed__ = True
@@ -581,6 +593,26 @@
sub.itemR(ipaint, "seam_bleed")
sub.itemR(ipaint, "normal_angle")
+# ********** default tools for light mode ****************
+class View3DPanel(bpy.types.Panel):
+ __space_type__ = "VIEW_3D"
+ __region_type__ = "TOOLS"
+ __context__ = "light_paint"
+
+class VIEW3D_PT_light_paint_options(View3DPanel):
+ __label__ = "Options"
+
+ def draw(self, context):
+ layout = self.layout
+ lpaint = context.tool_settings.light_paint
+
+# col = layout.column()
+# col.itemL(text="Blend:")
+# col.itemR(vpaint, "mode", text="")
+# col.itemR(vpaint, "all_faces")
+# col.itemR(vpaint, "normals")
+# col.itemR(vpaint, "spray")
+
# ********** default tools for particle mode ****************
class View3DPanel(bpy.types.Panel):
@@ -625,5 +657,6 @@
bpy.types.register(VIEW3D_PT_sculpt_options)
bpy.types.register(VIEW3D_PT_vertex_paint_options)
bpy.types.register(VIEW3D_PT_weight_paint_options)
+bpy.types.register(VIEW3D_PT_light_paint_options)
bpy.types.register(VIEW3D_PT_tools_texture_paint)
bpy.types.register(VIEW3D_PT_tools_particle_edit)
More information about the Bf-blender-cvs
mailing list