Merge with trunk/2.5 at r25563
Most likely will not compile for others, I'd appreciate any build errors and missing files reports (I can never seem to get everything committed and all the build systems working without help). Porting over the sculpt/multires tools was a breeze, thanks goes to brecht for a design that didn't exclude ngons and was easy to port. Note that I've not tested externally-backed multires file support yet. Also, I still need to write version patch code for some cases. Some notes: * Like trunk, topological changes don't update multires right, so e.g. subdivide will duplicate multires data on the new faces, instead of subdividing it. * If you set the debug value (ctrl-alt-d) to 1 it'll turn on my experiments in speeding up sculpting on higher-res multires meshes (but note it makes partial redraw not completely accurate). * There's a bug where you have to go through editmode to get out of sculpt mode, not sure if I inherited or created this myself.
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "ED_particle.h"
|
||||
#include "ED_screen.h"
|
||||
|
||||
#include "physics_intern.h"
|
||||
|
||||
@@ -69,7 +70,7 @@ static int particle_system_add_exec(bContext *C, wmOperator *op)
|
||||
if(!scene || !ob)
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
object_add_particle_system(scene, ob);
|
||||
object_add_particle_system(scene, ob, NULL);
|
||||
WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
@@ -83,8 +84,9 @@ void OBJECT_OT_particle_system_add(wmOperatorType *ot)
|
||||
ot->description="Add a particle system.";
|
||||
|
||||
/* api callbacks */
|
||||
ot->poll= ED_operator_object_active_editable;
|
||||
ot->exec= particle_system_add_exec;
|
||||
|
||||
|
||||
/* flags */
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
}
|
||||
@@ -120,6 +122,7 @@ void OBJECT_OT_particle_system_remove(wmOperatorType *ot)
|
||||
ot->description="Remove the selected particle system.";
|
||||
|
||||
/* api callbacks */
|
||||
ot->poll= ED_operator_object_active_editable;
|
||||
ot->exec= particle_system_remove_exec;
|
||||
|
||||
/* flags */
|
||||
@@ -266,11 +269,11 @@ static int remove_particle_target_exec(bContext *C, wmOperator *op)
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
void PARTICLE_OT_remove_target(wmOperatorType *ot)
|
||||
void PARTICLE_OT_target_remove(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name= "Remove Particle Target";
|
||||
ot->idname= "PARTICLE_OT_remove_target";
|
||||
ot->idname= "PARTICLE_OT_target_remove";
|
||||
ot->description="Remove the selected particle target.";
|
||||
|
||||
/* api callbacks */
|
||||
|
||||
Reference in New Issue
Block a user