Fixed Flamenco exclusion filter bug

There was a mistake in an older version of the property tooltip, showing
semicolon-separated instead of space-separated. We now just handle both.
This commit is contained in:
2018-12-07 12:25:48 +01:00
parent 4fd4ad7448
commit 8899bff5e4
2 changed files with 9 additions and 4 deletions

View File

@@ -2,9 +2,10 @@
import asyncio
import logging
import pathlib
import re
import threading
import typing
import pathlib
import bpy
from blender_asset_tracer import pack
@@ -114,7 +115,11 @@ async def copy(context,
as packer:
with _packer_lock:
if exclusion_filter:
packer.exclude(*exclusion_filter.split())
# There was a mistake in an older version of the property tooltip,
# showing semicolon-separated instead of space-separated. We now
# just handle both.
filter_parts = re.split('[ ;]+', exclusion_filter.strip(' ;'))
packer.exclude(*filter_parts)
packer.progress_cb = BatProgress()
_running_packer = packer