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:
Luca Rood 2017-05-08 11:47:47 +02:00
parent 0dd766b043
commit 2fed99ad9f
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #51379, Hair editing shouldn't break blender
1 changed files with 3 additions and 0 deletions

View File

@ -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;