Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-06-05 18:51:37 +0300
committerJacques Lucke <jacques@blender.org>2022-06-05 18:51:37 +0300
commit270a24cc640587e650045d7511f64638916a8e78 (patch)
tree8b2bcc3dbfc0540861be6d4834ac03dc8b76a4db /source/blender/editors/curves
parent545d46987900e8ae42bac39ba591b352b1880d8d (diff)
Fix: incorrect operator warning
Diffstat (limited to 'source/blender/editors/curves')
-rw-r--r--source/blender/editors/curves/intern/curves_ops.cc3
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};