Skip to content
Snippets Groups Projects
Commit 0fcd2037 authored by Brendon Murphy's avatar Brendon Murphy
Browse files

addons/object_cloud_gen.py

removed warning, api r35853
quick fix for error.
line 519 commented out > # bpy.ops.object.location_apply()
parent 39361da2
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,10 @@ bl_info = { ...@@ -21,10 +21,10 @@ bl_info = {
"author": "Nick Keeline(nrk)", "author": "Nick Keeline(nrk)",
"version": (1,0), "version": (1,0),
"blender": (2, 5, 7), "blender": (2, 5, 7),
"api": 35622, "api": 35853,
"location": "View3D > Tool Shelf > Cloud Generator Panel", "location": "View3D > Tool Shelf > Cloud Generator Panel",
"description": "Creates Volumetric Clouds", "description": "Creates Volumetric Clouds",
"warning": "Script returns errors", "warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
"Scripts/Object/Cloud_Gen", "Scripts/Object/Cloud_Gen",
"tracker_url": "https://projects.blender.org/tracker/index.php?"\ "tracker_url": "https://projects.blender.org/tracker/index.php?"\
...@@ -516,7 +516,7 @@ class GenerateCloud(bpy.types.Operator): ...@@ -516,7 +516,7 @@ class GenerateCloud(bpy.types.Operator):
#Don't subdivide object or smooth if smoothing box not checked. #Don't subdivide object or smooth if smoothing box not checked.
if scene.cloudsmoothing: if scene.cloudsmoothing:
bpy.ops.mesh.subdivide(number_cuts=2, fractal=0, smoothness=1) bpy.ops.mesh.subdivide(number_cuts=2, fractal=0, smoothness=1)
bpy.ops.object.location_apply() # bpy.ops.object.location_apply()
bpy.ops.mesh.vertices_smooth(repeat=20) bpy.ops.mesh.vertices_smooth(repeat=20)
bpy.ops.mesh.tris_convert_to_quads() bpy.ops.mesh.tris_convert_to_quads()
bpy.ops.mesh.faces_shade_smooth() bpy.ops.mesh.faces_shade_smooth()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment