warn when applying transformation does nothing, confusion pointed out in [#36583]

This commit is contained in:
Campbell Barton 2013-08-28 04:17:48 +00:00
parent 9e561a641e
commit 48a637a4e4

@ -589,8 +589,10 @@ static int apply_objects_internal(bContext *C, ReportList *reports, int apply_lo
}
CTX_DATA_END;
if (!change)
if (!change) {
BKE_report(reports, RPT_WARNING, "Objects have no data to transform");
return OPERATOR_CANCELLED;
}
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL);
return OPERATOR_FINISHED;