Following up on revision 23783

Transform saves back tool settings only when they weren't set as operator argument (and only when running modal).
This commit is contained in:
2009-10-12 13:37:07 +00:00
parent f1a0df22df
commit 0eab183a66
2 changed files with 31 additions and 21 deletions

View File

@@ -934,7 +934,7 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
if(v3d->flag & V3D_ALIGN) t->flag |= T_V3D_ALIGN;
t->around = v3d->around;
if (op && RNA_struct_find_property(op->ptr, "constraint_axis") && RNA_property_is_set(op->ptr, "constraint_orientation"))
if (op && RNA_struct_find_property(op->ptr, "constraint_orientation") && RNA_property_is_set(op->ptr, "constraint_orientation"))
{
t->current_orientation = RNA_enum_get(op->ptr, "constraint_orientation");