Hi! I downloaded the lastest Blender’s version from buildbot. I want to test the new “World API”.
I just took the example from API:
# Set the mist color to red.
import bge
sce = bge.logic.getCurrentScene()
sce.world.mist_color = [1.0, 0.0, 0.0]
But I get an error message:
Python script error - object ‘Cube’, controller ‘Python’:Traceback (most recent call last):
File “Text”, line 6, in <module>
AttributeError: ‘KX_WorldInfo’ object has no attribute ‘mist_color’
Same thing for background_color. The world API changes are not already merged to the trunk (EDIT: Animations work however)? Thanks!
(OS: Windows 8.1 64, last Blender 64)