Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_fluid.c
| Show First 20 Lines • Show All 714 Lines • ▼ Show 20 Lines | if (!mds->fluid) { | ||||
| memset(values, 0, size * sizeof(float)); | memset(values, 0, size * sizeof(float)); | ||||
| } | } | ||||
| else { | else { | ||||
| if (mds->flags & FLUID_DOMAIN_USE_NOISE) { | if (mds->flags & FLUID_DOMAIN_USE_NOISE) { | ||||
| if (manta_smoke_turbulence_has_colors(mds->fluid)) { | if (manta_smoke_turbulence_has_colors(mds->fluid)) { | ||||
| manta_smoke_turbulence_get_rgba(mds->fluid, values, 0); | manta_smoke_turbulence_get_rgba(mds->fluid, values, 0); | ||||
| } | } | ||||
| else { | else { | ||||
| manta_smoke_turbulence_get_rgba_from_density(mds->fluid, mds->active_color, values, 0); | manta_smoke_turbulence_get_rgba_fixed_color(mds->fluid, mds->active_color, values, 0); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (manta_smoke_has_colors(mds->fluid)) { | if (manta_smoke_has_colors(mds->fluid)) { | ||||
| manta_smoke_get_rgba(mds->fluid, values, 0); | manta_smoke_get_rgba(mds->fluid, values, 0); | ||||
| } | } | ||||
| else { | else { | ||||
| manta_smoke_get_rgba_from_density(mds->fluid, mds->active_color, values, 0); | manta_smoke_get_rgba_fixed_color(mds->fluid, mds->active_color, values, 0); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| BLI_rw_mutex_unlock(mds->fluid_mutex); | BLI_rw_mutex_unlock(mds->fluid_mutex); | ||||
| } | } | ||||
| static void rna_FluidModifier_flame_grid_get(PointerRNA *ptr, float *values) | static void rna_FluidModifier_flame_grid_get(PointerRNA *ptr, float *values) | ||||
| ▲ Show 20 Lines • Show All 1,823 Lines • Show Last 20 Lines | |||||