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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-08-04 11:21:02 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-08-04 11:21:02 +0300
commitdd3cdf6f1e9d7b19cc0b4bb85136a12e558e291d (patch)
tree8a8470511ba653354d070ec13d4244c031937e5b /source
parent18540f41d78fdf766aec5c99dbc63ef623fc003e (diff)
Fix T68202: GPencil Set Origin do not refresh until object is moved
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_transform.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index 5934eab62bb..975aa0f5bac 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -1337,12 +1337,13 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
}
}
}
- DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
-
tot_change++;
if (centermode == ORIGIN_TO_GEOMETRY) {
copy_v3_v3(ob->loc, gpcenter);
}
+ DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
+ DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM);
+
ob->id.tag |= LIB_TAG_DOIT;
do_inverse_offset = true;
}