Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function define_model (name,data)
  2.     m = pi_model:new(name)
  3.     if data.info then m:info(data.info) end
  4.     if data.static then
  5.         m:static(function (m,lod)
  6.             _current_model = m
  7.             data.static(lod)
  8.         end)
  9.     end
  10.     if data.static then
  11.         m:dynamic(function (m,lod)
  12.             _current_model = m
  13.             data.dynamic(lod)
  14.         end)
  15.     end
  16.     pi_model:add(m)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement