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:
authorAntony Riakiotakis <kalast@gmail.com>2013-03-14 07:42:17 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-03-14 07:42:17 +0400
commitd97050a7f668f75d7f0da5437cee42a2249a5a82 (patch)
treee58bab88580a1e035b9ba734de064aeb3ab11716 /release/scripts
parent604c75bb80ef84ef705f9e26fbac01928f6c3e8e (diff)
Support for textures in vertex painting.
Developer notes: this commit does painting in sRGB space. Since colours are stored im byte per component formats, expect this to have the usual dark fringing issues. Speed wise vertex paint could use some optimization, for instance we could store the screen space vertex positions on initialization like we do for texture painting, but this is for another time. Also noticed that vertex painting suffers from the subsurf + mirror issue too :/ Apart from that it's quite exciting how easy it is to add support for texturing now that proper abstractions for texture sampling have been done :)
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index ec7e17be758..8fb48f96073 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -751,7 +751,7 @@ class VIEW3D_PT_tools_brush_texture(Panel, View3DPaintPanel):
def poll(cls, context):
settings = cls.paint_settings(context)
return (settings and settings.brush and
- (context.sculpt_object or context.image_paint_object))
+ (context.sculpt_object or context.image_paint_object or context.vertex_paint_object))
def draw(self, context):
layout = self.layout