[Bf-blender-cvs] [235655ee0d0] master: Improve message in ob_parbone() about the missing Parent Bone
Philipp Oeser
noreply at git.blender.org
Fri Sep 3 17:21:11 CEST 2021
Commit: 235655ee0d0634db9150b1dc266e3a3b35c491e4
Author: Philipp Oeser
Date: Fri Sep 3 17:16:42 2021 +0200
Branches: master
https://developer.blender.org/rB235655ee0d0634db9150b1dc266e3a3b35c491e4
Improve message in ob_parbone() about the missing Parent Bone
- lower to warning (might be debatable, but this is not really
malfunctioning and e.g. constraints/modifiers dont spit out errors if
targets are not specified)
- clarify _what_ of the two actualy does not exist
ref. T91101
Maniphest Tasks: T91101
Differential Revision: https://developer.blender.org/D12389
===================================================================
M source/blender/blenkernel/intern/object.c
===================================================================
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index c91cf6ed926..062264c5729 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -3307,8 +3307,8 @@ static void ob_parbone(Object *ob, Object *par, float r_mat[4][4])
/* Make sure the bone is still valid */
bPoseChannel *pchan = BKE_pose_channel_find_name(par->pose, ob->parsubstr);
if (!pchan || !pchan->bone) {
- CLOG_ERROR(
- &LOG, "Object %s with Bone parent: bone %s doesn't exist", ob->id.name + 2, ob->parsubstr);
+ CLOG_WARN(
+ &LOG, "Parent Bone: '%s' for Object: '%s' doesn't exist", ob->parsubstr, ob->id.name + 2);
unit_m4(r_mat);
return;
}
More information about the Bf-blender-cvs
mailing list