# Disable object with spine animation (win only) (DEF-2220)

**URL:** <https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345>\
**Category:** Bugs\
**Created:** [November 8, 2016, 8:33pm UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345 "2016-11-08T20:33:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [November 8, 2016, 8:33pm UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345/1 "2016-11-08T20:33:14Z")

</div>

I found very strange bug. It reproduced **only on windows**.

When I disabled objects with spine animation - gameobject.update takes too many frame time.

Spawn GO with spine animations only:

 ![](https://forum-defold.b-cdn.net/uploads/default/original/2X/7/7c0f3c1b3dd06d2300f5e7bc85599444395cb860.png)

`msg.post(object, "disable")`

 ![](https://forum-defold.b-cdn.net/uploads/default/original/2X/8/8f9d12086273b53a56723b75ec4c9dba6145d5e3.png)

code:

```lua
local personages = {}

local function create_pers(self, position)
  
 
  table.insert(personages, factory.create("#pers1_factory", position))
 
end

function init(self)
	for i=1,10 do
		create_pers(self, vmath.vector3(math.random(0,640),math.random(0,360),0))
	end
	msg.post(".","acquire_input_focus")
end

function on_input(self, action_id, action)
	if action_id == hash("click") then
		for i=1,10 do
			msg.post(personages[i], "disable")
		end
	end
	
	if action_id == hash("no_click") then
		for i=1,10 do
			msg.post(personages[i], "enable")
		end
	end
end

```

I have a test project.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [November 9, 2016, 6:02am UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345/2 "2016-11-09T06:02:00Z")

</div>

Wow! This is something for @sven I think.

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [November 9, 2016, 8:17am UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345/3 "2016-11-09T08:17:37Z")

</div>

Hi!  
I have seen this reported internally here and updated the topic with the issue id.

Quick question, are you experiencing this on Windows? Does this happen to you on other platforms?

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [November 9, 2016, 8:55am UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345/4 "2016-11-09T08:55:48Z")

</div>

no, I tried to reproduce it on ios, android and macos. And this bug is reproduced only on Windows

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [November 9, 2016, 8:56am UTC](https://forum.defold.com/t/disable-object-with-spine-animation-win-only-def-2220/3345/5 "2016-11-09T08:56:20Z")

</div>

Great, thanks for the update!
