fill.scaleY set to 0.5, when read reads 2

Just noticed the following odd behaviour in the latest daily build 2197.

local text=display.newText({...) text.fill={ type="image", filename="img/texttexture.png" } text.fill.scaleY=0.5 print ("scale " .. text.fill.scaleY)

Weirdly the output of the print statement is 2!  Anyone able to tell me why that is? 

Actually it’s obvious, but confusing at the same time… I’m guessing the texture scales work in reverse?

I’ve also seen this strange behaviour. Some explanation would be interesting *hint hint*

I’m on build 2014.2189 (latest public) and I’m seeing this as well. And I do not agree with OP that it is obvious. Texture scaling might work in reverse but then I want to set it in reverse, I don’t want the value I have set to change to something else, it makes no sense. Below is the code to reproduce. I see this as a bug, please comment.

local texture = display.newRect(0, 0, 100, 100) texture.fill = { type = 'image', filename = 'myveryverynicetexture.png' } local heehee = 1024 / 100 texture.fill.scaleX = heehee print(texture.fill.scaleX, heehee) -- not the same any more??!

Actually it’s obvious, but confusing at the same time… I’m guessing the texture scales work in reverse?

I’ve also seen this strange behaviour. Some explanation would be interesting *hint hint*

I’m on build 2014.2189 (latest public) and I’m seeing this as well. And I do not agree with OP that it is obvious. Texture scaling might work in reverse but then I want to set it in reverse, I don’t want the value I have set to change to something else, it makes no sense. Below is the code to reproduce. I see this as a bug, please comment.

local texture = display.newRect(0, 0, 100, 100) texture.fill = { type = 'image', filename = 'myveryverynicetexture.png' } local heehee = 1024 / 100 texture.fill.scaleX = heehee print(texture.fill.scaleX, heehee) -- not the same any more??!