Doll equip function
* Added list/tuple support for the equip function
This commit is contained in:
parent
961ff76c7b
commit
af2a4a4a85
@ -134,6 +134,20 @@ init python:
|
|||||||
self.clothes[i.type][0].set_color(i.color)
|
self.clothes[i.type][0].set_color(i.color)
|
||||||
if self.pose:
|
if self.pose:
|
||||||
i.parent.set_pose(self.pose)
|
i.parent.set_pose(self.pose)
|
||||||
|
elif isinstance(obj, (list, tuple)):
|
||||||
|
for cloth in obj:
|
||||||
|
self.clothes[cloth.type][0] = cloth
|
||||||
|
self.clothes[cloth.type][2] = True
|
||||||
|
|
||||||
|
if self.is_blacklisted(cloth.type):
|
||||||
|
self.unequip(*self.get_blacklister(cloth.type))
|
||||||
|
|
||||||
|
if cloth.blacklist:
|
||||||
|
self.unequip(*cloth.blacklist)
|
||||||
|
|
||||||
|
if self.pose:
|
||||||
|
cloth.set_pose(self.pose)
|
||||||
|
|
||||||
self.body.rebuild_image()
|
self.body.rebuild_image()
|
||||||
self.rebuild_image()
|
self.rebuild_image()
|
||||||
self.rebuild_blacklist()
|
self.rebuild_blacklist()
|
||||||
|
Loading…
Reference in New Issue
Block a user