Page MenuHome

BGE: Fix T27322: World F-Curve
ClosedPublic

Authored by Thomas Szepe (hg1) on Dec 29 2013, 3:59 PM.

Details

Summary

This patch fixes the world (mist, background, ambient) F-Curve for for the BGE.

Diff Detail

Event Timeline

The patch depends on https://developer.blender.org/D149 (no merge conflicts).

Mitchell Stokes (moguri) requested changes to this revision.Apr 16 2014, 4:12 AM

I've made some inline notes. The big one that needs to be addressed is BL_ConvertWorldIpos() not returning NULL.

source/gameengine/Ketsji/BL_Action.cpp
153

Your BL_ConvertWorldIpos() will always return a non-NULL pointer, which means every single action the BGE will also try to play a world IPO, which isn't what we want. Take a look at BL_CreateObColorIPO() or BL_CreateMaterialIpo() for examples of how to fix this.

source/gameengine/Ketsji/KX_IpoConvert.cpp
275

This should be renamed to BL_CreateWorldIPO() to match the other functions.

source/gameengine/Ketsji/KX_WorldIpoController.h
50

These should probably be done as a bitfield, but this will be okay for now.

Thomas Szepe (hg1) updated this revision to Unknown Object (????).Jul 19 2014, 7:12 PM
Mitchell Stokes (moguri) edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Feb 21 2015, 9:57 PM
Thomas Szepe (hg1) retitled this revision from BGE: World F-Curve fix to BGE: Fix T27322: World F-Curve .Mar 23 2015, 9:56 AM
Thomas Szepe (hg1) edited edge metadata.
This revision was automatically updated to reflect the committed changes.