[Bf-blender-cvs] [854485b4b31] master: Fix T60411: crash in multi-object pose mode, with some armatures in rest pose.

Brecht Van Lommel noreply at git.blender.org
Fri Jan 11 17:27:10 CET 2019


Commit: 854485b4b31c5e92049cf86fe13ed2c35486e33c
Author: Brecht Van Lommel
Date:   Fri Jan 11 12:19:42 2019 +0100
Branches: master
https://developer.blender.org/rB854485b4b31c5e92049cf86fe13ed2c35486e33c

Fix T60411: crash in multi-object pose mode, with some armatures in rest pose.

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

M	source/blender/editors/transform/transform_conversions.c

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

diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 1dce388a275..6e4386a4171 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1162,10 +1162,17 @@ static void createTransPose(TransInfo *t)
 			continue;
 		}
 
+		/* set flags and count total */
+		tc->data_len = count_set_pose_transflags(ob, t->mode, t->around, has_translate_rotate);
+		if (tc->data_len == 0) {
+			continue;
+		}
+
 		if (arm->flag & ARM_RESTPOS) {
 			if (ELEM(t->mode, TFM_DUMMY, TFM_BONESIZE) == 0) {
 				BKE_report(t->reports, RPT_ERROR, "Cannot change Pose when 'Rest Position' is enabled");
-				return;
+				tc->data_len = 0;
+				continue;
 			}
 		}
 
@@ -1174,10 +1181,6 @@ static void createTransPose(TransInfo *t)
 			ik_on = pose_grab_with_ik(bmain, ob);
 			if (ik_on) t->flag |= T_AUTOIK;
 		}
-
-		/* set flags and count total (warning, can change transform to rotate) */
-		tc->data_len = count_set_pose_transflags(ob, t->mode, t->around, has_translate_rotate);
-		/* len may be zero, skip next iteration. */
 	}
 
 	/* if there are no translatable bones, do rotation */



More information about the Bf-blender-cvs mailing list