Skip to content

Commit 63b9a2c

Browse files
committed
update
1 parent 47ee1a6 commit 63b9a2c

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ This mod has been inspired by 'Copy Any Outfit' by scumbumbo. All code has been
201201
# Addendum
202202

203203
## Game compatibility
204-
This mod has been tested with `The Sims 4` 1.108.349, S4CL 3.7, TS4Lib 0.3.24 (2024-07-25).
204+
This mod has been tested with `The Sims 4` 1.109.185, S4CL 3.7, TS4Lib 0.3.24 (2024-07-25).
205205
It is expected to be compatible with many upcoming releases of TS4, S4CL and TS4Lib.
206206

207207
## Dependencies

_TS4/mod_documentation/copy_outfits/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ This mod has been inspired by 'Copy Any Outfit' by scumbumbo. All code has been
201201
# Addendum
202202

203203
## Game compatibility
204-
This mod has been tested with `The Sims 4` 1.108.349, S4CL 3.7, TS4Lib 0.3.24 (2024-07-25).
204+
This mod has been tested with `The Sims 4` 1.109.185, S4CL 3.7, TS4Lib 0.3.24 (2024-07-25).
205205
It is expected to be compatible with many upcoming releases of TS4, S4CL and TS4Lib.
206206

207207
## Dependencies
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CopyOutfits v1.9.6 for The Sims 4 v1.108.349 and S4CL v3.7
2-
Created on 2024-08-17
3-
v1.9.6
4-
Fixed Exception while pasting outfits via picker
1+
CopyOutfits v1.9.7 for The Sims 4 v1.109.185 and S4CL v3.7
2+
Created on 2024-10-08
3+
v1.9.7
4+
Fix NPE within get_parts_from_clipboard() when no CAS parts are available.
55

copy_outfits/modinfo.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _file_path(self) -> str:
2828

2929
@property
3030
def _version(self) -> str:
31-
return '1.9.6'
31+
return '1.9.7'
3232

3333

3434
r'''
@@ -42,7 +42,8 @@ def _version(self) -> str:
4242
TODO
4343
Load and Save outfits
4444
Read config files / support user defined skins
45-
45+
v1.9.7
46+
Fix NPE within get_parts_from_clipboard() when no CAS parts are available.
4647
v1.9.6
4748
Fixed Exception while pasting outfits via picker
4849
v1.9.5

copy_outfits/utils/copy_outfit_utilities.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ def get_parts_from_clipboard(sim_age: int, clipboard_index: int = 0) -> Dict:
7070
if parts:
7171
source = OutfitStore.outfits.get(sim_age).get(clipboard_index)
7272
debug_message = f"(with data from '{source}')"
73-
pass
7473
else:
7574
debug_message = f"(clipboard is empty)"
7675
else:
7776
debug_message = "(no outfits available for this age)"
7877
log.debug(f"get_parts_from_clipboard({sim_age}, {clipboard_index}) -> '{parts}' {debug_message}")
79-
return parts.copy()
78+
if parts:
79+
return parts.copy()
80+
return {}

0 commit comments

Comments
 (0)