Parent object appears back after removing
Open, ConfirmedPublic

Description

System Information
Win 7 64bit

Blender Version
Broken: 2.79

Short description of error
Empty is parented to Cube and have delta scaling. After removing parent and clearing scale (including delta's) parent oject appears back.

Exact steps for others to reproduce the error
Open file, select Empty, unlink/remove parent object from Empty in object tab. Then hit ALT S to clear scale and check "Clear delta" in T-panel -> parent object appears back (see object tab)

Details

Type
Bug
ronan ducluzeau (zeauro) triaged this task as Confirmed priority.Nov 17 2017, 3:05 PM

Confirmation with 2.79 and master 759b50b on linux.

Clearing parent from Properties by using X cross icon is not permanent as it should.
Clearing parent by using Alt P shortcut or by click'n drag on object icon in outliner is working correctly.

This comes from the fact that auto-generated widgets for pointers (RNA_POINTER will generate UI_BTYPE_SEARCH_MENU buttons) do not have UI_BUT_UNDO flag set, so they do not store an undo step when edited.

@Campbell Barton (campbellbarton) think this should be amended, but am not quite sure where/how to do it best? By default RNA pointers are not editable, imho always storing undo step when editing an editable one shall make sense…