[Bf-blender-cvs] [bf087a92dd8] temp-sculpt-colors: Merge branch 'master' into temp-sculpt-colors

Joseph Eagar noreply at git.blender.org
Tue Mar 22 14:01:45 CET 2022


Commit: bf087a92dd8f51d8f7b470c1d98a60ef8124f064
Author: Joseph Eagar
Date:   Mon Mar 21 20:09:00 2022 -0700
Branches: temp-sculpt-colors
https://developer.blender.org/rBbf087a92dd8f51d8f7b470c1d98a60ef8124f064

Merge branch 'master' into temp-sculpt-colors

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



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

diff --cc release/datafiles/locale
index ad63b22b5a1,2a5095eed30..30b4ef98b5d
--- a/release/datafiles/locale
+++ b/release/datafiles/locale
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit ad63b22b5a1adffc90beb96607c690e2b344ac94
 -Subproject commit 2a5095eed3028e91624d27ca93e4c65f572b809d
++Subproject commit 30b4ef98b5d044bf793e105d2e020a9cd8a55a61
diff --cc release/scripts/addons
index fbb5111e155,67f1fbca148..d6f0fb5b17f
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit fbb5111e1551ad26edabb2a58beb18da149cdceb
 -Subproject commit 67f1fbca1482d9d9362a4001332e785c3fd5d230
++Subproject commit d6f0fb5b17f00c1c498f9afa8775bf8502b97778
diff --cc source/blender/blenloader/intern/versioning_300.c
index bb2396701ed,19b7e1e4f3c..d71bfd27a7f
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@@ -42,8 -41,8 +42,9 @@@
  #include "BKE_animsys.h"
  #include "BKE_armature.h"
  #include "BKE_asset.h"
 +#include "BKE_attribute.h"
  #include "BKE_collection.h"
+ #include "BKE_curve.h"
  #include "BKE_deform.h"
  #include "BKE_fcurve.h"
  #include "BKE_fcurve_driver.h"
@@@ -2569,54 -2364,59 +2366,107 @@@ void blo_do_versions_300(FileData *fd, 
      }
    }
  
+   if (!MAIN_VERSION_ATLEAST(bmain, 302, 6)) {
+     LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
+       ToolSettings *ts = scene->toolsettings;
+       if (ts->uv_relax_method == 0) {
+         ts->uv_relax_method = UV_SCULPT_TOOL_RELAX_LAPLACIAN;
+       }
+     }
+     LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
+       ToolSettings *tool_settings = scene->toolsettings;
+       tool_settings->snap_flag_seq = tool_settings->snap_flag & ~(SCE_SNAP | SCE_SNAP_SEQ);
+       if (tool_settings->snap_flag & SCE_SNAP_SEQ) {
+         tool_settings->snap_flag_seq |= SCE_SNAP;
+         tool_settings->snap_flag &= ~SCE_SNAP_SEQ;
+       }
+ 
+       tool_settings->snap_flag_node = tool_settings->snap_flag;
+       tool_settings->snap_uv_flag |= tool_settings->snap_flag & SCE_SNAP;
+     }
+ 
+     /* Alter NURBS knot mode flags to fit new modes. */
+     LISTBASE_FOREACH (Curve *, curve, &bmain->curves) {
+       LISTBASE_FOREACH (Nurb *, nurb, &curve->nurb) {
+         /* Previously other flags were ignored if CU_NURB_CYCLIC is set. */
+         if (nurb->flagu & CU_NURB_CYCLIC) {
+           nurb->flagu = CU_NURB_CYCLIC;
+         }
+         /* CU_NURB_BEZIER and CU_NURB_ENDPOINT were ignored if combined. */
+         else if (nurb->flagu & CU_NURB_BEZIER && nurb->flagu & CU_NURB_ENDPOINT) {
+           nurb->flagu &= ~(CU_NURB_BEZIER | CU_NURB_ENDPOINT);
+           BKE_nurb_knot_calc_u(nurb);
+         }
+         /* Bezier NURBS of order 3 were clamped to first control point. */
+         else if (nurb->orderu == 3 && (nurb->flagu & CU_NURB_BEZIER)) {
+           nurb->flagu |= CU_NURB_ENDPOINT;
+         }
+ 
+         /* Previously other flags were ignored if CU_NURB_CYCLIC is set. */
+         if (nurb->flagv & CU_NURB_CYCLIC) {
+           nurb->flagv = CU_NURB_CYCLIC;
+         }
+         /* CU_NURB_BEZIER and CU_NURB_ENDPOINT were ignored if used together. */
+         else if (nurb->flagv & CU_NURB_BEZIER && nurb->flagv & CU_NURB_ENDPOINT) {
+           nurb->flagv &= ~(CU_NURB_BEZIER | CU_NURB_ENDPOINT);
+           BKE_nurb_knot_calc_v(nurb);
+         }
+         /* Bezier NURBS of order 3 were clamped to first control point. */
+         else if (nurb->orderv == 3 && (nurb->flagv & CU_NURB_BEZIER)) {
+           nurb->flagv |= CU_NURB_ENDPOINT;
+         }
+       }
+     }
+   }
+ 
 +  /* rebuild active/render color attribute references*/
-   if (!MAIN_VERSION_ATLEAST(bmain, 302, 4)) {
++  if (!MAIN_VERSION_ATLEAST(bmain, 302, 6)) {
 +    LISTBASE_FOREACH (Brush *, br, &bmain->brushes) {
 +      /* buggy code in wm_toolsystem broke smear in old files,
 +         reset to defaults */
 +      if (br->sculpt_tool == SCULPT_TOOL_SMEAR) {
 +        br->alpha = 1.0f;
 +        br->spacing = 5;
 +        br->flag &= ~BRUSH_ALPHA_PRESSURE;
 +        br->flag &= ~BRUSH_SPACE_ATTEN;
 +        br->curve_preset = BRUSH_CURVE_SPHERE;
 +      }
 +    }
 +
 +    LISTBASE_FOREACH (Mesh *, me, &bmain->meshes) {
 +      for (int step = 0; step < 2; step++) {
 +        CustomDataLayer *actlayer = NULL;
 +
 +        int vact1, vact2;
 +
 +        if (step) {
 +          vact1 = CustomData_get_render_layer_index(&me->vdata, CD_PROP_COLOR);
 +          vact2 = CustomData_get_render_layer_index(&me->ldata, CD_MLOOPCOL);
 +        }
 +        else {
 +          vact1 = CustomData_get_active_layer_index(&me->vdata, CD_PROP_COLOR);
 +          vact2 = CustomData_get_active_layer_index(&me->ldata, CD_MLOOPCOL);
 +        }
 +
 +        if (vact1 != -1) {
 +          actlayer = me->vdata.layers + vact1;
 +        }
 +        else if (vact2 != -1) {
 +          actlayer = me->ldata.layers + vact2;
 +        }
 +
 +        if (actlayer) {
 +          if (step) {
 +            BKE_id_attributes_render_color_set(&me->id, actlayer);
 +          }
 +          else {
 +            BKE_id_attributes_active_color_set(&me->id, actlayer);
 +          }
 +        }
 +      }
 +    }
 +  }
 +
    /**
     * Versioning code until next subversion bump goes here.
     *
diff --cc source/blender/editors/sculpt_paint/sculpt_undo.c
index 8bc532a8429,2ec553c63c7..d6ee1a91a1f
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@@ -32,7 -31,7 +32,8 @@@
  #include "BKE_key.h"
  #include "BKE_main.h"
  #include "BKE_mesh.h"
 +#include "BKE_mesh_mapping.h"
+ #include "BKE_mesh_runtime.h"
  #include "BKE_multires.h"
  #include "BKE_object.h"
  #include "BKE_paint.h"
diff --cc source/blender/makesdna/DNA_userdef_types.h
index 41cc1ac2fa7,4dee89db274..94b2514d423
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@@ -649,7 -648,10 +648,9 @@@ typedef struct UserDef_Experimental 
    char use_sculpt_tools_tilt;
    char use_extended_asset_browser;
    char use_override_templates;
-   char _pad[3];
+   char use_named_attribute_nodes;
+   char enable_eevee_next;
 -  char _pad[1];
++  char _pad[2];
    /** `makesdna` does not allow empty structs. */
  } UserDef_Experimental;
  
diff --cc source/tools
index 5715a567950,7fd2ed908b4..1e658ca996f
--- a/source/tools
+++ b/source/tools
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit 5715a567950258c17089c9b9cb175a6ef8c602ce
 -Subproject commit 7fd2ed908b4f50140670caf6786e5ed245b79137
++Subproject commit 1e658ca996f11e5ff3398d89bd81f5b719304a57



More information about the Bf-blender-cvs mailing list