Commit: 62390527b2e9b6a6a2939df120f87b5b2a54e74b
Author: Clément Foucault
Date:   Thu Mar 1 15:30:48 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB62390527b2e9b6a6a2939df120f87b5b2a54e74b

Object Mode: Make use of optimized DRW_shgroup_call_object_add

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

M       source/blender/draw/modes/object_mode.c

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

diff --git a/source/blender/draw/modes/object_mode.c 
b/source/blender/draw/modes/object_mode.c
index ad943767da4..0ae5352f4c9 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -1889,7 +1889,7 @@ static void OBJECT_cache_populate(void *vedata, Object 
*ob)
                                theme_id = DRW_object_wire_theme_get(ob, 
view_layer, NULL);
                                DRWShadingGroup *shgroup = 
shgroup_theme_id_to_outline_or(stl, theme_id, NULL);
                                if (shgroup != NULL) {
-                                       DRW_shgroup_call_add(shgroup, geom, 
ob->obmat);
+                                       DRW_shgroup_call_object_add(shgroup, 
geom, ob);
                                }
                        }
                }
@@ -1909,7 +1909,7 @@ static void OBJECT_cache_populate(void *vedata, Object 
*ob)
                                                        }
 
                                                        DRWShadingGroup 
*shgroup = shgroup_theme_id_to_point_or(stl, theme_id, stl->g_data->points);
-                                                       
DRW_shgroup_call_add(shgroup, geom, ob->obmat);
+                                                       
DRW_shgroup_call_object_add(shgroup, geom, ob);
                                                }
                                        }
                                        else {
@@ -1920,7 +1920,7 @@ static void OBJECT_cache_populate(void *vedata, Object 
*ob)
                                                        }
 
                                                        DRWShadingGroup 
*shgroup = shgroup_theme_id_to_wire_or(stl, theme_id, stl->g_data->wire);
-                                                       
DRW_shgroup_call_add(shgroup, geom, ob->obmat);
+                                                       
DRW_shgroup_call_object_add(shgroup, geom, ob);
                                                }
                                        }
                                }
@@ -1938,7 +1938,7 @@ static void OBJECT_cache_populate(void *vedata, Object 
*ob)
                                }
 
                                DRWShadingGroup *shgroup = 
shgroup_theme_id_to_wire_or(stl, theme_id, stl->g_data->wire);
-                               DRW_shgroup_call_add(shgroup, geom, ob->obmat);
+                               DRW_shgroup_call_object_add(shgroup, geom, ob);
                        }
                        break;
                }
@@ -1951,7 +1951,7 @@ static void OBJECT_cache_populate(void *vedata, Object 
*ob)
                                        theme_id = 
DRW_object_wire_theme_get(ob, view_layer, NULL);
                                }
                                DRWShadingGroup *shgroup = 
shgroup_theme_id_to_wire_or(stl, theme_id, stl->g_data->wire);
-                               DRW_shgroup_call_add(shgroup, geom, ob->obmat);
+                               DRW_shgroup_call_object_add(shgroup, geom, ob);
                        }
                        break;
                }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to