Revision: 46696
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46696
Author:   blendix
Date:     2012-05-16 14:36:15 +0000 (Wed, 16 May 2012)
Log Message:
-----------
Fix issue with linked dupli objects not being displayed in the viewport, if they
have no object bounding box. Better fix will be to figure out why they are the
bounding boxes are not made.

Thanks to Campbell to tracking down the commit that caused this.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawobject.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c      
2012-05-16 14:30:41 UTC (rev 46695)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c      
2012-05-16 14:36:15 UTC (rev 46696)
@@ -3586,7 +3586,7 @@
        }
        else {
                /* ob->bb was set by derived mesh system, do NULL check just to 
be sure */
-               if (me->totpoly <= 4 || (ob->bb && 
ED_view3d_boundbox_clip(rv3d, ob->obmat, ob->bb))) {
+               if (me->totpoly <= 4 || (!ob->bb || 
ED_view3d_boundbox_clip(rv3d, ob->obmat, ob->bb))) {
                        glsl = draw_glsl_material(scene, ob, v3d, dt);
                        check_alpha = check_alpha_pass(base);
 

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

Reply via email to