diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-05 18:51:37 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-06-05 18:51:37 +0300 |
commit | 270a24cc640587e650045d7511f64638916a8e78 (patch) | |
tree | 8b2bcc3dbfc0540861be6d4834ac03dc8b76a4db /source/blender/editors/curves | |
parent | 545d46987900e8ae42bac39ba591b352b1880d8d (diff) |
Fix: incorrect operator warning
Diffstat (limited to 'source/blender/editors/curves')
-rw-r--r-- | source/blender/editors/curves/intern/curves_ops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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}; |