Transform: do not save settings when canceling the operation
If we are canceling, the settings must remain the same as before we start the operation.
This commit is contained in:
parent
deaddbdcff
commit
cc623ee7b0
@ -1484,6 +1484,12 @@ static void drawTransformPixel(const struct bContext *C, ARegion *region, void *
|
||||
|
||||
void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
|
||||
{
|
||||
if (t->state == TRANS_CANCEL) {
|
||||
/* No need to edit operator properties or tool settings if we are canceling the operation.
|
||||
* These properties must match the original ones. */
|
||||
return;
|
||||
}
|
||||
|
||||
ToolSettings *ts = CTX_data_tool_settings(C);
|
||||
PropertyRNA *prop;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user