Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_particle.c
| Show First 20 Lines • Show All 944 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static float rna_PartSetting_linelenhead_get(struct PointerRNA *ptr) | static float rna_PartSetting_linelenhead_get(struct PointerRNA *ptr) | ||||
| { | { | ||||
| ParticleSettings *settings = (ParticleSettings *)ptr->data; | ParticleSettings *settings = (ParticleSettings *)ptr->data; | ||||
| return settings->draw_line[1]; | return settings->draw_line[1]; | ||||
| } | } | ||||
| static bool rna_PartSettings_is_fluid_get(PointerRNA *ptr) | static int rna_PartSettings_is_fluid_get(PointerRNA *ptr) | ||||
| { | { | ||||
| ParticleSettings *part = (ParticleSettings *)ptr->data; | ParticleSettings *part = (ParticleSettings *)ptr->data; | ||||
| return part->type == PART_FLUID; | return (part->type & (PART_FLUID_FLIP | PART_FLUID_SPRAY | PART_FLUID_BUBBLE | PART_FLUID_FOAM | | ||||
| PART_FLUID_TRACER)); | |||||
| } | } | ||||
| static void rna_ParticleSettings_use_clump_curve_update(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_ParticleSettings_use_clump_curve_update(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| ParticleSettings *part = ptr->data; | ParticleSettings *part = ptr->data; | ||||
| if (part->child_flag & PART_CHILD_USE_CLUMP_CURVE) { | if (part->child_flag & PART_CHILD_USE_CLUMP_CURVE) { | ||||
| if (!part->clumpcurve) { | if (!part->clumpcurve) { | ||||
| ▲ Show 20 Lines • Show All 2,951 Lines • Show Last 20 Lines | |||||