A weird behaviour of the "Bake LOD"

| Project: | Primstar - Blender Scripts for Second Life Sculpties |
| Version: | 1.0.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
When i create a sculptie, i get the LOD template automatically done. When i set the viewer to "Textured" i see this template right on the sculptie. well. When i create a new image in edit mode, the sculptie turns black as expected because the new image contains no data. fine.
Now i bake the LOD template into the new image. The new image receives the data and looks as expected. But the object remains black. When i now enable paint mode in the uv-editor and put a dot somewhere into the image, suddenly the whole texture gets shown on the object.
This effect is attached to the state of the image after the bake LOD has performed. I.e. as soon as i store the texture to disk and then reload it from there, everything works again as expected and the object receives the texture data on its surface again.
Is that a bug or a feature ?

Comments
#1
It looks like we found a patch:
In image_sculptie_lod.py:
def main(): image = Blender.Image.GetCurrent() if image: bake_lod(image) image.glFree() #### This line added #### else: Blender.Draw.PupBlock("Sculptie Bake Error", ["No current image"])And in render_sculptie.py (near line 394):
if image.packed: image.pack() image.glFree() #### This line added #### Blender.Redraw()I hope this goes into the right direction...
Post new comment