diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-03 19:05:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-03 19:05:18 +0400 |
commit | 4faf39673a6ecbfcee13ff73ff41434b35285a76 (patch) | |
tree | 9041b3cae43c74725d01605f5ab5b5185d7942ce /object_cloud_gen.py | |
parent | 3c4c1ed512c84ab06ec74fba5151b36062d639ec (diff) |
update for changes in rna io_import_scene_mhx.py mapto isnt working as it should since this can now only be accessed as many bools
Diffstat (limited to 'object_cloud_gen.py')
-rw-r--r-- | object_cloud_gen.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/object_cloud_gen.py b/object_cloud_gen.py index d2336c63..956120bb 100644 --- a/object_cloud_gen.py +++ b/object_cloud_gen.py @@ -513,7 +513,10 @@ class GenerateCloud(bpy.types.Operator): cloudtex = blend_data.textures.new("CloudTex", type='CLOUDS') cloudtex.noise_type = 'HARD_NOISE' cloudtex.noise_scale = 2 - cloudMaterial.add_texture(cloudtex, 'ORCO') + mtex = cloudMaterial.texture_slots.add() + mtex.texture = cloudtex + mtex.texture_coords = 'ORCO' + mtex.use_map_color_diffuse = True # Add a force field to the points. cloudField = bounds.field @@ -531,10 +534,14 @@ class GenerateCloud(bpy.types.Operator): # Add a Point Density texture pDensity = blend_data.textures.new("CloudPointDensity", 'POINT_DENSITY') - cloudMaterial.add_texture(pDensity, 'ORCO') - vMaterialTextureSlots[1].use_map_density = True - vMaterialTextureSlots[1].use_rgb_to_intensity = True - vMaterialTextureSlots[1].texture_coords = 'GLOBAL' + + mtex = cloudMaterial.texture_slots.add() + mtex.texture = pDensity + mtex.texture_coords = 'GLOBAL' + mtex.use_map_density = True + mtex.use_rgb_to_intensity = True + mtex.texture_coords = 'GLOBAL' + pDensity.point_density.vertex_cache_space = 'WORLD_SPACE' pDensity.point_density.use_turbulence = True pDensity.point_density.noise_basis = 'VORONOI_F2' |