BGE: Fix for precision lost in setBackground/getBackground at Video Texture
authorJorge Bernal <jbernalmartinez@gmail.com>
Mon, 15 Jun 2015 22:05:25 +0000 (00:05 +0200)
committerJorge Bernal <jbernalmartinez@gmail.com>
Mon, 15 Jun 2015 22:05:25 +0000 (00:05 +0200)
commit6d634467104fc53701d77c7aeb1382a3c198b6d2
tree9212fe9e63a148caa45a79b3c72e532ac35e50df
parent53e3e4633244facb76740a58f1b2b9b6c1e2a00d
BGE: Fix for precision lost in setBackground/getBackground at Video Texture

Now internally the variables are processed as floats avoiding int->float->char conversions that are causing precision lost.

A check for int numbers is maintained to keep compatibility with old behaviour.

Reviewers: ben2610, campbellbarton, moguri, hg1

Reviewed By: moguri, hg1

Subscribers: campbellbarton

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1301
doc/python_api/rst/bge.texture.rst
source/gameengine/VideoTexture/ImageRender.cpp
source/gameengine/VideoTexture/ImageRender.h