Commit: 270a24cc640587e650045d7511f64638916a8e78
Author: Jacques Lucke
Date:   Sun Jun 5 17:51:37 2022 +0200
Branches: master
https://developer.blender.org/rB270a24cc640587e650045d7511f64638916a8e78

Fix: incorrect operator warning

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

M       source/blender/editors/curves/intern/curves_ops.cc

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

diff --git a/source/blender/editors/curves/intern/curves_ops.cc 
b/source/blender/editors/curves/intern/curves_ops.cc
index 54f0a0208fb..25bcba6cfb3 100644
--- a/source/blender/editors/curves/intern/curves_ops.cc
+++ b/source/blender/editors/curves/intern/curves_ops.cc
@@ -620,10 +620,11 @@ static int snap_curves_to_surface_exec(bContext *C, 
wmOperator *op)
         break;
       }
       case AttachMode::Deform: {
-        if (!surface_uv_map.is_empty()) {
+        if (surface_uv_map.is_empty()) {
           BKE_report(op->reports,
                      RPT_ERROR,
                      "Curves do not have attachment information that can be 
used for deformation");
+          break;
         }
         using geometry::ReverseUVSampler;
         ReverseUVSampler reverse_uv_sampler{surface_uv_map, surface_looptris};

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

Reply via email to