[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12400] trunk/blender/source/blender: missing header from last commit.
Campbell Barton
cbarton at metavr.com
Fri Oct 26 11:22:07 CEST 2007
Revision: 12400
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12400
Author: campbellbarton
Date: 2007-10-26 11:22:07 +0200 (Fri, 26 Oct 2007)
Log Message:
-----------
missing header from last commit.
possible fix for suspicious crash, dont draw the cursor when there are no UV's.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Window.c
trunk/blender/source/blender/src/drawimage.c
Modified: trunk/blender/source/blender/python/api2_2x/Window.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Window.c 2007-10-26 08:19:40 UTC (rev 12399)
+++ trunk/blender/source/blender/python/api2_2x/Window.c 2007-10-26 09:22:07 UTC (rev 12400)
@@ -47,6 +47,7 @@
#include "BIF_screen.h"
#include "BIF_space.h"
#include "BIF_drawtext.h"
+#include "BIF_poseobject.h"
#include "DNA_view3d_types.h"
#include "DNA_space_types.h"
#include "DNA_scene_types.h"
Modified: trunk/blender/source/blender/src/drawimage.c
===================================================================
--- trunk/blender/source/blender/src/drawimage.c 2007-10-26 08:19:40 UTC (rev 12399)
+++ trunk/blender/source/blender/src/drawimage.c 2007-10-26 09:22:07 UTC (rev 12400)
@@ -424,7 +424,7 @@
int wi, hi;
float w, h;
- if (!G.obedit) return;
+ if (!G.obedit || !CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE)) return;
transform_width_height_tface_uv(&wi, &hi);
w = (((float)wi)/256.0f)*G.sima->zoom * xuser_asp;
More information about the Bf-blender-cvs
mailing list