Merging r42800 through r42895 from trunk into soc-2011-tomato
This commit is contained in:
@@ -681,7 +681,7 @@ static void modifiers_convertToReal(bContext *C, void *ob_v, void *md_v)
|
||||
|
||||
static int modifier_can_delete(ModifierData *md)
|
||||
{
|
||||
// fluid particle modifier can't be deleted here
|
||||
/* fluid particle modifier can't be deleted here */
|
||||
if(md->type == eModifierType_ParticleSystem)
|
||||
if(((ParticleSystemModifierData *)md)->psys->part->type == PART_FLUID)
|
||||
return 0;
|
||||
@@ -689,14 +689,16 @@ static int modifier_can_delete(ModifierData *md)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Check wheter Modifier is a simulation or not, this is used for switching to the physics/particles context tab
|
||||
/* Check wheter Modifier is a simulation or not, this is used for switching to the physics/particles context tab */
|
||||
static int modifier_is_simulation(ModifierData *md)
|
||||
{
|
||||
// Physic Tab
|
||||
if(ELEM7(md->type, eModifierType_Cloth, eModifierType_Collision, eModifierType_Fluidsim, eModifierType_Smoke, eModifierType_Softbody, eModifierType_Surface, eModifierType_DynamicPaint)) {
|
||||
/* Physic Tab */
|
||||
if (ELEM7(md->type, eModifierType_Cloth, eModifierType_Collision, eModifierType_Fluidsim, eModifierType_Smoke,
|
||||
eModifierType_Softbody, eModifierType_Surface, eModifierType_DynamicPaint))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
// Particle Tab
|
||||
/* Particle Tab */
|
||||
else if (md->type == eModifierType_ParticleSystem) {
|
||||
return 2;
|
||||
}
|
||||
@@ -705,7 +707,8 @@ static int modifier_is_simulation(ModifierData *md)
|
||||
}
|
||||
}
|
||||
|
||||
static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob, ModifierData *md, int index, int cageIndex, int lastCageIndex)
|
||||
static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob,
|
||||
ModifierData *md, int index, int cageIndex, int lastCageIndex)
|
||||
{
|
||||
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
|
||||
PointerRNA ptr;
|
||||
|
||||
Reference in New Issue
Block a user