Fix T51379: Entering particle edit crash (temporary)
Disabled particle edit mode for now, as there's no point in fixing it before refactor.
This commit is contained in:
@@ -4733,6 +4733,9 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
|
||||
const int mode_flag = OB_MODE_PARTICLE_EDIT;
|
||||
const bool is_mode_set = (ob->mode & mode_flag) != 0;
|
||||
|
||||
BKE_report(op->reports, RPT_INFO, "Particles are changing, editing is not possible");
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
if (!is_mode_set) {
|
||||
if (!ED_object_mode_compat_set(C, ob, mode_flag, op->reports)) {
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
Reference in New Issue
Block a user