Thread Tools Display Modes
06-06-17, 12:55 PM   #1
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
Did Setlight change?

Trying to get an addon of mine (PictureThis) to work again but am getting an error.
Did SetLight change?

4x PictureThis\PictureThis_UI.lua:2958: Usage: <unnamed>:SetLight(enabled[, omni, dirX, dirY, dirZ, ambIntensity[, ambR, ambG, ambB], dirIntensity[, dirR, dirG, dirB]])
[C]: in function `SetLight'
PictureThis\PictureThis_UI.lua:2958: in function `PictureThis_Update_Character'
PictureThis\PictureThis_UI.lua:629: in function `PictureThis_Update_Order'
PictureThis\PictureThis_UI.lua:3101: in function `PictureThis_Update_Preview'
PictureThis\PictureThis_UI.lua:3180: in function `PictureThis_Toggle_UI'
PictureThis\PictureThis_Main.lua:90: in function `OnClick'
BugSack\Libs\LibDBIcon-1.0\LibDBIcon-1.0-34.lua:116: in function <BugSack\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:116>

Locals:
(*temporary) = <unnamed> {
0 = <userdata>
}
(*temporary) = 1
(*temporary) = 0
(*temporary) = -4
(*temporary) = 0
(*temporary) = 4
(*temporary) = 0.5
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0.5
(*temporary) = 1
(*temporary) = 1
(*temporary) = 1
__________________
Better to fail then never have tried at all.
  Reply With Quote
06-06-17, 01:54 PM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Looking at the diffs this was changed back in 7.0.3
https://github.com/Gethe/wow-ui-sour...eate.lua#L1400
Code:
--- a/GlueXML/CharacterCreate.lua
+++ b/GlueXML/CharacterCreate.lua

@@ -1078,7 +1397,7 @@ function CharCreate_DisplayPreviewModels(selectionIndex)
	model:SetCameraPosition(cx, cy, config.cz * scale);
-	model:SetLight(1, 0, 0, 0, 0, config.light, 1.0, 1.0, 1.0);
+	model:SetLight(true, false, 0, 0, 0, config.light, 1.0, 1.0, 1.0);
end

Last edited by Ketho : 06-08-17 at 12:15 PM.
  Reply With Quote
06-08-17, 11:18 AM   #3
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
Thumbs up Thanks Ketho

That part is working fine now.

Thanks Ketho
__________________
Better to fail then never have tried at all.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Did Setlight change?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off