fix [#34860] View in Weight Painting mode no longer rotates around active bone

This commit is contained in:
Campbell Barton
2013-04-04 04:26:13 +00:00
parent 2804caff4c
commit 66aed41d75

View File

@@ -440,7 +440,7 @@ static void viewops_data_create(bContext *C, wmOperator *op, const wmEvent *even
Scene *scene = CTX_data_scene(C);
Object *ob = OBACT;
if (ob && ob->mode & OB_MODE_ALL_PAINT) {
if (ob && (ob->mode & OB_MODE_ALL_PAINT) && (BKE_object_pose_armature_get(ob) == NULL)) {
/* transformation is disabled for painting modes, which will make it
* so previous offset is used. This is annoying when you open file
* saved with active object in painting mode