Fix for bug #10144: "set editable" on a disabled particle system

could cause crashes.
Fix related to bug #10198: particle mode didn't respect undo steps
set to 0.

Also made the memory statistics print (ctrl+alt+shift+q) use the
more human readable form to give an overview, instead of printing
out a python script.
This commit is contained in:
2008-05-01 17:31:01 +00:00
parent 31adad5b4d
commit 0d1aa8d7bf
4 changed files with 12 additions and 4 deletions

View File

@@ -3130,9 +3130,13 @@ void do_effects_panels(unsigned short event)
}
}
else {
psys->flag |= PSYS_EDITED;
if(G.f & G_PARTICLEEDIT)
PE_create_particle_edit(ob, psys);
if(psys_check_enabled(ob, psys)) {
psys->flag |= PSYS_EDITED;
if(G.f & G_PARTICLEEDIT)
PE_create_particle_edit(ob, psys);
}
else
error("Particle system not enabled, skipping set editable");
}
}
case B_FIELD_DEP: