Skip to content

Commit 44128ee

Browse files
committed
- fix some errors that show in later unreal versions
1 parent 47dab13 commit 44128ee

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

Assets/DeleteUnusedAssets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
3030
processingAssetPath = asset
3131
deps = editorAssetLib.find_package_referencers_for_asset(asset, False)
3232
if (len(deps) <= 0):
33-
print ">>> Deleting >>> %s" % asset
33+
print (">>> Deleting >>> %s" % asset)
3434
editorAssetLib.delete_asset(asset)
3535
if slowTask.should_cancel():
3636
break

Assets/PrefixAllAssets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def GetProperPrefix(className):
111111
_targetPathName = _assetPathOnly + ("%s%s%s%s%s%s%s" % (_assetPrefix, "_", _assetName, ".", _assetPrefix, "_", _assetName))
112112

113113
editorAssetLib.rename_asset(_assetPathName, _targetPathName)
114-
print ">>> Renaming [%s] to [%s]" % (_assetPathName, _targetPathName)
114+
print (">>> Renaming [%s] to [%s]" % (_assetPathName, _targetPathName))
115115

116116
if slowTask.should_cancel():
117117
break

Assets/ReportUnusedAssets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
2525
for asset in allAssets:
2626
deps = editorAssetLib.find_package_referencers_for_asset(asset, False)
2727
if (len(deps) == 0):
28-
print ">>>%s" % asset
28+
print (">>>%s" % asset)

Assets/UnifyAllAssetsDuplicates.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
4646

4747
if (len(assetsMatching) != 0):
4848
editorAssetLib.consolidate_assets(_processAsset, assetsMatching)
49-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
50-
print ">>> The unifing process completed for %d assets" % len(assetsMatching)
51-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
49+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
50+
print (">>> The unifing process completed for %d assets" % len(assetsMatching))
51+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
5252
else:
53-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
54-
print ">>> There were no duplicates found for the selected asset"
55-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
53+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
54+
print (">>> There were no duplicates found for the selected asset")
55+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
5656

5757
if slowTask.should_cancel():
5858
break

Assets/UnifyAssetDuplicates.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
4343

4444
if (_assetName == selectedAssetName):
4545
if (asset != selectedAssetPath):
46-
print ">>> There is a duplicate found for the asset %s located at %s" % (_assetName, asset)
46+
print (">>> There is a duplicate found for the asset %s located at %s" % (_assetName, asset))
4747
_assetLoaded = editorAssetLib.load_asset(asset)
4848
assetsMatching.append(_assetData.get_asset())
4949
if slowTask.should_cancel():
@@ -53,10 +53,10 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
5353

5454
if (len(assetsMatching) != 0):
5555
editorAssetLib.consolidate_assets(selectedAsset, assetsMatching)
56-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
57-
print ">>> The unifing process completed for %d assets" % len(assetsMatching)
58-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
56+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
57+
print (">>> The unifing process completed for %d assets" % len(assetsMatching))
58+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
5959
else:
60-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
61-
print ">>> There were no duplicates found for the selected asset"
62-
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
60+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
61+
print (">>> There were no duplicates found for the selected asset")
62+
print (">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")

Materials/AssignMaterialToAllSimilarNamedMeshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
4747

4848
if (_assetName == selectedAssetName):
4949
if (asset != selectedAssetPath):
50-
print ">>> There is a duplicate found for the asset %s located at %s" % (_assetName, asset)
50+
print (">>> There is a duplicate found for the asset %s located at %s" % (_assetName, asset))
5151
_assetLoaded = editorAssetLib.load_asset(asset)
5252
if(_assetClass == selectedAssetClass):
5353
assetsMatching.append(_assetData.get_asset())

0 commit comments

Comments
 (0)