[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47413] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: Fix #31559: second 3D viewport does not update when paiting vertex/weight
Sergey Sharybin
sergey.vfx at gmail.com
Mon Jun 4 17:13:40 CEST 2012
Revision: 47413
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47413
Author: nazgul
Date: 2012-06-04 15:13:36 +0000 (Mon, 04 Jun 2012)
Log Message:
-----------
Fix #31559: second 3D viewport does not update when paiting vertex/weight
Added notification at the end of weight/vertex paint stroke so all opened
viewports would be updated (same was already done for sculpt mode).
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-06-04 15:02:29 UTC (rev 47412)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-06-04 15:13:36 UTC (rev 47413)
@@ -2461,6 +2461,8 @@
}
DAG_id_tag_update(ob->data, 0);
+
+ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
}
@@ -2954,6 +2956,8 @@
{
ToolSettings *ts = CTX_data_tool_settings(C);
struct VPaintData *vpd = paint_stroke_mode_data(stroke);
+ ViewContext *vc = &vpd->vc;
+ Object *ob = vc->obact;
if (vpd->vertexcosnos)
MEM_freeN(vpd->vertexcosnos);
@@ -2966,6 +2970,8 @@
BLI_memarena_free(vpd->polyfacemap_arena);
}
+ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
+
MEM_freeN(vpd);
}
More information about the Bf-blender-cvs
mailing list