fixed bug in 3d picking; ag.pickObjects() working now
git-svn-id: svn://anubis/anaglym/trunk@255 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
1 parent
b2feea1324
commit
83d6c60fea
3 files changed
+9
-4
No files matched your search
@@ -60,6 +60,11 @@ end
|
||||
|
||||
function mousebutton_down_event(button, x, y)
|
||||
if (button == 1) then
|
||||
ag.pickObjects(x, y)
|
||||
objects = ag.pickObjects(x, y)
|
||||
if (objects ~= nil) then
|
||||
for id, obj in ipairs(objects) do
|
||||
obj:setColor(0, 0, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user