Commit 77689b78 authored by Simpy's avatar Simpy 🐹

dont assume `GetObjectType` always exists

parent 643d0092
......@@ -14,7 +14,7 @@ local function OnMouseDown(self, button)
elseif button == "MiddleButton" then
local rawData = self:GetParent():GetAttributeData().rawValue
if rawData:GetObjectType() == "Texture" then
if rawData.GetObjectType and rawData:GetObjectType() == "Texture" then
_G.TEX = rawData
E:Print("_G.TEX set to: ", string)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment