Skip to content

Commit 08d5aa3

Browse files
Merge pull request #443 from Unity-Technologies/bugfixes/schoen/create-workspace
Fix exception when loading Poly workspace in project without Poly Toolkit
2 parents ed68e8e + 74df520 commit 08d5aa3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Scripts/Modules/WorkspaceModule.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public void OnDeserializePreferences(object obj)
167167

168168
internal void CreateWorkspace(Type t, Action<IWorkspace> createdCallback = null)
169169
{
170+
if (!typeof(IWorkspace).IsAssignableFrom(t))
171+
return;
172+
170173
// HACK: MiniWorldWorkspace is not working in single pass yet
171174
if (t == typeof(MiniWorldWorkspace) && PlayerSettings.stereoRenderingPath != StereoRenderingPath.MultiPass)
172175
{

0 commit comments

Comments
 (0)