Commit: d06f7d8577423f00dd79b4d0105c46c6c70d5d58
Author: Nicholas Bishop
Date:   Tue Jan 27 00:07:49 2015 +0100
Branches: cycles-ptex-19
https://developer.blender.org/rBd06f7d8577423f00dd79b4d0105c46c6c70d5d58

Hacky fix for saving texpaint ptex changes

===================================================================

M       source/blender/editors/sculpt_paint/paint_image_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c 
b/source/blender/editors/sculpt_paint/paint_image_proj.c
index ec57cd8..4399e26 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -74,6 +74,7 @@
 #include "BKE_mesh_mapping.h"
 #include "BKE_node.h"
 #include "BKE_paint.h"
+#include "BKE_ptex.h"
 #include "BKE_report.h"
 #include "BKE_scene.h"
 #include "BKE_texture.h"
@@ -3672,6 +3673,12 @@ static void project_paint_end(ProjPaintState *ps)
                MEM_freeN((void *)ps->tile_lock);
        }
        if (ps->dm_mtface_ptex) {
+               Mesh *me = ps->ob->data;
+               MLoopPtex *loop_ptex = CustomData_get_layer(&me->ldata, 
CD_LOOP_PTEX);
+
+               // TODO
+               BKE_ptex_update_from_image(loop_ptex, me->totloop);
+
                MEM_freeN(ps->dm_mtface_ptex);
                ps->dm_mtface_ptex = NULL;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to