unitytk 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unitytk-0.0.4/unitytk.egg-info → unitytk-0.0.5}/PKG-INFO +1 -1
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/__init__.py +1 -1
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/README.md +2 -2
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/UnitytkSettings.cs +20 -0
- {unitytk-0.0.4 → unitytk-0.0.5/unitytk.egg-info}/PKG-INFO +1 -1
- {unitytk-0.0.4 → unitytk-0.0.5}/LICENSE +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/MANIFEST.in +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/docs/README.md +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/pyproject.toml +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/setup.cfg +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_asset_delivery.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_audio_events_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_bool_to_fade_curve.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_c130_fcr_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_c5m_visibility.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_clip_name_contract_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_deploy_templates.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_fade_window_preservation.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_launcher.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_lightmap_metadata_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_render_opacity_controller.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_render_opacity_e2e.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_render_opacity_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_scene_builder.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_shadow_plane_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_shared_material_standalone.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_shot_metadata_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_shots_audio_sidebyside_integration.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/test/test_standalone_enduser.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/asset_delivery.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/launcher.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/scene_builder.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/template_deployer.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/AudioEventController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/EmissiveGroupController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/EmissiveGroups.hlsl +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/EmissiveGroupsLit.shader +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/LightmapMetadataController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/M3trik.Unitytk.asmdef +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/RenderOpacityController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/ShadowPlaneController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/ShotMetadataController.cs +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk/templates/__init__.py +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk.egg-info/SOURCES.txt +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk.egg-info/dependency_links.txt +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk.egg-info/requires.txt +0 -0
- {unitytk-0.0.4 → unitytk-0.0.5}/unitytk.egg-info/top_level.txt +0 -0
|
@@ -53,8 +53,8 @@ Maya-only until ported).
|
|
|
53
53
|
`package.json`. Unity picks the folder up as an **embedded package**: it
|
|
54
54
|
lists in the Package Manager with this unitytk release's version, and
|
|
55
55
|
re-running the call updates it in place. (The DCC-side Unity Bridge panels
|
|
56
|
-
expose this as
|
|
57
|
-
|
|
56
|
+
expose this as the **Manage Unity Scripts** template — status / install-
|
|
57
|
+
update / uninstall, driven by its Action parameter.)
|
|
58
58
|
|
|
59
59
|
The set is **compile-coupled** — every controller references the shared
|
|
60
60
|
`ImportGate` / `CarrierImport` classes defined in `UnitytkSettings.cs`, and
|
|
@@ -227,6 +227,7 @@ public static class CarrierImport
|
|
|
227
227
|
|
|
228
228
|
static readonly HashSet<string> _needCustomProps = new HashSet<string>();
|
|
229
229
|
static readonly HashSet<string> _needSparseCurves = new HashSet<string>();
|
|
230
|
+
static bool _applying;
|
|
230
231
|
|
|
231
232
|
/// <summary>This asset needs animated custom-property curves
|
|
232
233
|
/// (opacity / Maya keyed emissive weights).</summary>
|
|
@@ -262,6 +263,25 @@ public static class CarrierImport
|
|
|
262
263
|
if (_needCustomProps.Count == 0 && _needSparseCurves.Count == 0)
|
|
263
264
|
return;
|
|
264
265
|
|
|
266
|
+
// SaveAndReimport below re-enters this method via the nested import's
|
|
267
|
+
// own OnPostprocessAllAssets (whose detection re-requests the asset —
|
|
268
|
+
// harmless: its settings now satisfy, so the entry purges next time).
|
|
269
|
+
// The guard keeps the loop flat instead of one nesting level per
|
|
270
|
+
// pending asset.
|
|
271
|
+
if (_applying) return;
|
|
272
|
+
_applying = true;
|
|
273
|
+
try
|
|
274
|
+
{
|
|
275
|
+
ApplyPending();
|
|
276
|
+
}
|
|
277
|
+
finally
|
|
278
|
+
{
|
|
279
|
+
_applying = false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static void ApplyPending()
|
|
284
|
+
{
|
|
265
285
|
var paths = new HashSet<string>(_needCustomProps);
|
|
266
286
|
paths.UnionWith(_needSparseCurves);
|
|
267
287
|
foreach (var assetPath in paths)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|