mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #1645 from FatherGrishnak/patch-1
Update to fix #1644
This commit is contained in:
commit
5387419a3d
1 changed files with 5 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ class ObjectDBManager(TypedObjectManager):
|
|||
"""
|
||||
Create and return a new object as a copy of the original object. All
|
||||
will be identical to the original except for the arguments given
|
||||
specifically to this method.
|
||||
specifically to this method. Object contents will not be copied.
|
||||
|
||||
Args:
|
||||
original_object (Object): The object to make a copy from.
|
||||
|
|
@ -502,6 +502,10 @@ class ObjectDBManager(TypedObjectManager):
|
|||
for script in original_object.scripts.all():
|
||||
ScriptDB.objects.copy_script(script, new_obj=new_object)
|
||||
|
||||
# copy over all tags, if any
|
||||
for tag in original_object.tags.get(return_tagobj=True, return_list=True):
|
||||
new_object.tags.add(tag=tag.key, category=tag.category, data=tag.data)
|
||||
|
||||
return new_object
|
||||
|
||||
def clear_all_sessids(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue