[Bf-blender-cvs] [adb0e5e054d] temp-pbvh-split: temp-pbvh-split: fix merge error

Joseph Eagar noreply at git.blender.org
Fri Oct 7 11:33:17 CEST 2022


Commit: adb0e5e054deb180a595fab598552ecf51ec29f1
Author: Joseph Eagar
Date:   Fri Oct 7 02:32:49 2022 -0700
Branches: temp-pbvh-split
https://developer.blender.org/rBadb0e5e054deb180a595fab598552ecf51ec29f1

temp-pbvh-split: fix merge error

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

M	source/blender/draw/intern/DRW_render.h
M	source/blender/draw/intern/draw_manager_data.cc

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

diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h
index d134e97e925..e0e3f649fb2 100644
--- a/source/blender/draw/intern/DRW_render.h
+++ b/source/blender/draw/intern/DRW_render.h
@@ -953,6 +953,9 @@ void DRW_mesh_batch_cache_get_attributes(struct Object *object,
                                          struct DRW_Attributes **r_attrs,
                                          struct DRW_MeshCDMask **r_cd_needed);
 
+void DRW_sculpt_debug_cb(
+    PBVHNode *node, void *user_data, const float bmin[3], const float bmax[3], PBVHNodeFlags flag);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/source/blender/draw/intern/draw_manager_data.cc b/source/blender/draw/intern/draw_manager_data.cc
index 2931766c5d6..d392624a350 100644
--- a/source/blender/draw/intern/draw_manager_data.cc
+++ b/source/blender/draw/intern/draw_manager_data.cc
@@ -1250,7 +1250,7 @@ static void sculpt_draw_cb(DRWSculptCallbackData *scd,
   }
 }
 
-static void sculpt_debug_cb(
+void DRW_sculpt_debug_cb(
     PBVHNode *node, void *user_data, const float bmin[3], const float bmax[3], PBVHNodeFlags flag)
 {
   int *debug_node_nr = (int *)user_data;
@@ -1366,7 +1366,7 @@ static void drw_sculpt_generate_calls(DRWSculptCallbackData *scd)
     BKE_pbvh_draw_debug_cb(
         pbvh,
         (void (*)(PBVHNode * n, void *d, const float min[3], const float max[3], PBVHNodeFlags f))
-            sculpt_debug_cb,
+            DRW_sculpt_debug_cb,
         &debug_node_nr);
   }
 }



More information about the Bf-blender-cvs mailing list