Commit: 8a57e48a8f51de40ec5957fa974a320e005e7511
Author: Siddhartha Jejurkar
Date:   Wed Jun 30 21:20:18 2021 +0530
Branches: soc-2021-uv-editor-improvements
https://developer.blender.org/rB8a57e48a8f51de40ec5957fa974a320e005e7511

Minor Cleanup

* Remove printf statements
* Use enums

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

M       source/blender/draw/engines/overlay/overlay_grid.c
M       source/blender/editors/uvedit/uvedit_unwrap_ops.c

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

diff --git a/source/blender/draw/engines/overlay/overlay_grid.c 
b/source/blender/draw/engines/overlay/overlay_grid.c
index ab2dcb160b0..0431168700a 100644
--- a/source/blender/draw/engines/overlay/overlay_grid.c
+++ b/source/blender/draw/engines/overlay/overlay_grid.c
@@ -81,9 +81,6 @@ void OVERLAY_grid_init(OVERLAY_Data *vedata)
      * (N^2) pixels in the UV/Image editor */
     shd->zoom_factor *= (N * N);
 
-    printf("xzoom = %f\n", xzoom);
-    printf("zoom Factor = %f\n\n", shd->zoom_factor);
-
     if (sima->flag & SI_DYNAMIC_GRID) {
       shd->grid_flag |= DYNAMIC_GRID;
       for (int step = 0; step < 8; step++) {
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c 
b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 03a12c4dafb..745a242050f 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -1136,8 +1136,8 @@ static void pack_islands_draw(bContext *C, wmOperator *op)
 void UV_OT_pack_islands(wmOperatorType *ot)
 {
   static const EnumPropertyItem pack_to[] = {
-      {0, "CLOSEST_UDIM", 0, "Closest UDIM", "Pack islands to closest UDIM"},
-      {1, "SPECIFIED_UDIM", 0, "Specified UDIM", "Pack islands to specified 
UDIM"},
+      {CLOSEST_UDIM, "CLOSEST_UDIM", 0, "Closest UDIM", "Pack islands to 
closest UDIM"},
+      {SPECIFIED_UDIM, "SPECIFIED_UDIM", 0, "Specified UDIM", "Pack islands to 
specified UDIM"},
       {0, NULL, 0, NULL, NULL},
   };
   /* identifiers */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to