Skip to content
Snippets Groups Projects
Commit 59121c35 authored by Florian Geiselhart's avatar Florian Geiselhart
Browse files

Fix TF loading / ownership bug

parent 83db7c67
Branches
1 merge request!5Mint
......@@ -467,7 +467,7 @@ TextMesh:
'
m_OffsetZ: 0
m_CharacterSize: 0.04
m_CharacterSize: 0.02
m_LineSpacing: 1
m_Anchor: 1
m_Alignment: 0
......
......@@ -181,10 +181,12 @@ public class TransferFunctionEditor : MonoBehaviourPun, IJsonStringSendable, IPo
public void startRenderingProcess(string relativeWorkspaceFilePath)
{
if (!relativeWorkspaceFilePath.EndsWith("fbx"))
{
string myWorkspaceDir = EnvConstants.WorkspacesPath;///.TrimEnd(new char[] { '\\' }); // remove trailing backslash from workspace path
string filename = myWorkspaceDir + relativeWorkspaceFilePath;
{
OwnershipRequired(true);
string myWorkspaceDir = EnvConstants.WorkspacesPath.TrimEnd(new char[] { '\\' }); // remove trailing backslash from workspace path
string filename = myWorkspaceDir + "\\" + relativeWorkspaceFilePath;
Debug.Log("Loading TF from "+filename);
TransferFunction loadedTf = EnvConstants.externalRenderers.Find(renderer => renderer.isOwnedFiletype(filename)).loadTransferFunction(filename);
Debug.Log(loadedTf.json());
PopulateFromTransferFunction(loadedTf);
......
......@@ -33,7 +33,6 @@ public class TransferFunctionSwatch : MonoBehaviour
void Start()
{
mat = transform.Find("eis").Find("Sphere001").gameObject.GetComponent<MeshRenderer>().material;
Debug.Log("COLOR:Start");
}
// Update is called once per frame
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment