Fix #29051: Set Origin - Center: Bounds does not work

Operator sued to check incorrect property to check initialization.

Patch by Kalle-Samuli Riihikoski, thanks!
This commit is contained in:
Sergey Sharybin
2011-11-04 11:37:13 +00:00
parent 936178d10f
commit 298790850c

View File

@@ -645,7 +645,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
/* get the view settings if 'around' isnt set and the view is available */
View3D *v3d= CTX_wm_view3d(C);
copy_v3_v3(cursor, give_cursor(scene, v3d));
if(v3d && !RNA_property_is_set(op->ptr, "around"))
if(v3d && !RNA_property_is_set(op->ptr, "center"))
around= v3d->around;
}