[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43228] trunk/blender/source/blender/ editors/render/render_opengl.c: dont draw object center dot for opengl render

Campbell Barton ideasman42 at gmail.com
Mon Jan 9 04:16:40 CET 2012


Revision: 43228
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43228
Author:   campbellbarton
Date:     2012-01-09 03:16:30 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
dont draw object center dot for opengl render

Modified Paths:
--------------
    trunk/blender/source/blender/editors/render/render_opengl.c

Modified: trunk/blender/source/blender/editors/render/render_opengl.c
===================================================================
--- trunk/blender/source/blender/editors/render/render_opengl.c	2012-01-09 02:50:09 UTC (rev 43227)
+++ trunk/blender/source/blender/editors/render/render_opengl.c	2012-01-09 03:16:30 UTC (rev 43228)
@@ -81,6 +81,8 @@
 	RegionView3D *rv3d;
 	ARegion *ar;
 
+	short obcenter_dia_back; /* temp overwrite */
+
 	Image *ima;
 	ImageUser iuser;
 
@@ -303,6 +305,9 @@
 
 	oglrender->write_still= is_write_still && !is_animation;
 
+	oglrender->obcenter_dia_back = U.obcenter_dia;
+	U.obcenter_dia = 0;
+
 	if(is_view_context) {
 		oglrender->v3d= CTX_wm_view3d(C);
 		oglrender->ar= CTX_wm_region(C);
@@ -360,6 +365,8 @@
 	WM_cursor_wait(0);
 	WM_event_add_notifier(C, NC_SCENE|ND_RENDER_RESULT, oglrender->scene);
 
+	U.obcenter_dia = oglrender->obcenter_dia_back;
+
 	GPU_offscreen_free(oglrender->ofs);
 
 	oglrender->scene->customdata_mask_modal= 0;



More information about the Bf-blender-cvs mailing list