[Bf-blender-cvs] [6ff675f8302] master: Fix transforming origin affecting unselected children
Campbell Barton
noreply at git.blender.org
Sun Sep 1 17:40:18 CEST 2019
Commit: 6ff675f830201033950269c107c8205992f810ff
Author: Campbell Barton
Date: Mon Sep 2 01:39:34 2019 +1000
Branches: master
https://developer.blender.org/rB6ff675f830201033950269c107c8205992f810ff
Fix transforming origin affecting unselected children
===================================================================
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 70552422524..887d4bcf0e8 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -8075,8 +8075,8 @@ static void createTransObject(bContext *C, TransInfo *t)
/* if base is not selected, not a parent of selection
* or not a child of selection and it is editable and selectable */
- if ((base->flag & BASE_SELECTED) == 0 && BASE_EDITABLE(v3d, base) &&
- BASE_SELECTABLE(v3d, base)) {
+ if ((base->flag_legacy & BA_WAS_SEL) && (base->flag & BASE_SELECTED) == 0 &&
+ BASE_EDITABLE(v3d, base) && BASE_SELECTABLE(v3d, base)) {
Object *ob_parent = ob->parent;
if (ob_parent != NULL) {
More information about the Bf-blender-cvs
mailing list