Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.
We need to properly select new objects (and deselect 'source' ones) when converting to another type while keeping original ones. Otherwise poll check of the operator fails, and redo panel cannot be shown. Note that this is actually a design flaw in redo system currently, since *new* state has to still allow last operator to be ran, when it should actually be previous step in history that matters here...
This commit is contained in:
parent
5dc9797f0b
commit
78bbf374f4
Notes:
blender-bot
2023-02-14 10:29:32 +01:00
Referenced by commit a44f5a561f
, Revert "Fix T65301: Convert to mesh with Keep Original loses adjust operator panel."
Referenced by issue #65301, Convert to mesh with Keep Original loses adjust operator panel
|
@ -2342,6 +2342,11 @@ static int convert_exec(bContext *C, wmOperator *op)
|
|||
basact = basen;
|
||||
}
|
||||
|
||||
if (keep_original) {
|
||||
ED_object_base_select(base, BA_DESELECT);
|
||||
ED_object_base_select(basen, BA_SELECT);
|
||||
}
|
||||
|
||||
basen = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue