[Bf-blender-cvs] [270a24cc640] master: Fix: incorrect operator warning
Jacques Lucke
noreply at git.blender.org
Sun Jun 5 17:51:50 CEST 2022
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};
More information about the Bf-blender-cvs
mailing list