Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_session.cpp
| Show First 20 Lines • Show All 1,157 Lines • ▼ Show 20 Lines | else if(b_id.is_a(&RNA_Object)) { | ||||
| else if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_COLOR)) | else if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_COLOR)) | ||||
| metadata.channels = 4; | metadata.channels = 4; | ||||
| else if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY)) | else if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY)) | ||||
| metadata.channels = 3; | metadata.channels = 3; | ||||
| else | else | ||||
| return; | return; | ||||
| int3 resolution = get_int3(b_domain.domain_resolution()); | int3 resolution = get_int3(b_domain.domain_resolution()); | ||||
| int amplify = (b_domain.use_high_resolution())? b_domain.amplify() + 1: 1; | int amplify = (b_domain.use_noise())? b_domain.noise_scale() : 1; | ||||
| /* Velocity and heat data is always low-resolution. */ | /* Velocity and heat data is always low-resolution. */ | ||||
| if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY) || | if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY) || | ||||
| builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_HEAT)) | builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_HEAT)) | ||||
| { | { | ||||
| amplify = 1; | amplify = 1; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | else if(b_id.is_a(&RNA_Object)) { | ||||
| BL::Object b_ob(b_id); | BL::Object b_ob(b_id); | ||||
| BL::SmokeDomainSettings b_domain = object_smoke_domain_find(b_ob); | BL::SmokeDomainSettings b_domain = object_smoke_domain_find(b_ob); | ||||
| if(!b_domain) { | if(!b_domain) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| int3 resolution = get_int3(b_domain.domain_resolution()); | int3 resolution = get_int3(b_domain.domain_resolution()); | ||||
| int length, amplify = (b_domain.use_high_resolution())? b_domain.amplify() + 1: 1; | int length, amplify = (b_domain.use_noise()) ? b_domain.noise_scale() : 1; | ||||
| /* Velocity and heat data is always low-resolution. */ | /* Velocity and heat data is always low-resolution. */ | ||||
| if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY) || | if(builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_VELOCITY) || | ||||
| builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_HEAT)) | builtin_name == Attribute::standard_name(ATTR_STD_VOLUME_HEAT)) | ||||
| { | { | ||||
| amplify = 1; | amplify = 1; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines | |||||