Revision: 29624 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29624 Author: bdiego Date: 2010-06-22 17:46:15 +0200 (Tue, 22 Jun 2010)
Log Message: ----------- Fix Bug [#22640] Center Cursor doesn't cause 3D window update in empty scene The viewhome operator forget tag the region for redraw when no object is in the scene and only move the cursor. Modified Paths: -------------- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c Modified: trunk/blender/source/blender/editors/space_view3d/view3d_edit.c =================================================================== --- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c 2010-06-22 15:20:06 UTC (rev 29623) +++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c 2010-06-22 15:46:15 UTC (rev 29624) @@ -1242,7 +1242,17 @@ minmax_object(base->object, min, max); } } - if(!onedone) return OPERATOR_FINISHED; /* TODO - should this be cancel? */ + if(!onedone) { + ED_region_tag_redraw(ar); + /* TODO - should this be cancel? + * I think no, because we always move the cursor, with or without + * object, but in this case there is no change in the scene, + * only the cursor so I choice a ED_region_tag like + * smooth_view do for the center_cursor. + * See bug #22640 + */ + return OPERATOR_FINISHED; + } afm[0]= (max[0]-min[0]); afm[1]= (max[1]-min[1]); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs