[09 May 2011] Bug in SetLayerStyle (Hollywood 4.8)

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[09 May 2011] Bug in SetLayerStyle (Hollywood 4.8)

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 09 May 2011 18:43:13 -0000

Here is my first bug report for Hollywood 4.8; it might also show up in previous versions, but I'm not sure.

Notice how the following code changes the name of the second Layer from "Right" to "Left" (and the name "Right" is lost completely). The problem comes from combining a change of the layer's brush ID with a change of Z position in the same SetLayerStyle(). If these are done separately, the code works correctly.

Code: Select all

EnableLayers()
LoadBrush(1, "Test.png", {LoadAlpha=True})
LoadBrush(2, "Test.png", {LoadAlpha=True})
DisplayBrush(1, #LEFT, #CENTER, {Name="Left"})
DisplayBrush(1, #RIGHT, #CENTER, {Name="Right"})
WaitLeftMouse()
SetLayerStyle("Left", {Z=0, ID=2})
;SetLayerStyle("Left", {Z=0})
;SetLayerStyle("Left", {ID=2})
SetLayerStyle("Left", {TranslateY=-10})
HideLayer("Right")
WaitLeftMouse()
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

[09 May 2011] Re: Bug in SetLayerStyle (Hollywood 4.8)

Post by Juan Carlos »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 9 May 2011 22:28:36 +0100 (BST)

Normal the hurries are never good!
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[19 May 2011] Re: Bug in SetLayerStyle (Hollywood 4.8)

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 19 May 2011 00:01:44 +0200
Here is my first bug report for Hollywood 4.8; it might also show up in previous versions, but I'm not sure.

Notice how the following code changes the name of the second Layer from "Right" to "Left" (and the name "Right" is lost completely). The problem comes from combining a change of the layer's brush ID with a change of Z position in the same SetLayerStyle(). If these are done separately, the code works correctly.
Yup, good spot! Will be fixed :)

The bug is also in previous versions, not only 4.8.
Locked