Problem with new World API

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)

Tristan has clanged the API of my patch to camelCase.

sce.world.mistColor = [1.0, 0.0, 0.0]

http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/BGE#World_.28Mist.29

Ok thanks very much!