diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-01-20 16:56:20 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-01-20 16:56:20 +0300 |
commit | 9db505f18955404317e73ad2682c161bae1c25e4 (patch) | |
tree | 0b906053832d9ffc4f0329d3f677ca8ca7ac26b8 /render_povray/render.py | |
parent | e5af17ebbc8fc950ac60bfb7ca7c5974e1720d49 (diff) |
Fixed: Background gradient to work with empty texture slots.
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 8b412bea..31f90cd1 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1233,7 +1233,8 @@ def write_pov(filename, scene=None, info_callback=None): worldTexCount=0 #For Background image textures for t in world.texture_slots: #risk to write several sky_spheres but maybe ok. - worldTexCount+=1 + if t and t.texture.type is not None: + worldTexCount+=1 if t and t.texture.type == 'IMAGE': #and t.use: #No enable checkbox for world textures yet (report it?) image_filename = path_image(t.texture.image.filepath) if t.texture.image.filepath != image_filename: t.texture.image.filepath = image_filename |