mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Nodes - Update NoStringEvaluating
Data model node - Take pin creation off of the UI thread
This commit is contained in:
parent
c21acf87a7
commit
43b7b8345c
@ -389,8 +389,8 @@
|
||||
},
|
||||
"NoStringEvaluating": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.2.1",
|
||||
"contentHash": "dYvWeDdSXrfWreWu17XUNCZD1QAbeMuyOLwVxNBBy+mbs1O/QjsYr1uQPCJWqYRF2Rd5nQBLFbFWybz4Ndh68g==",
|
||||
"resolved": "2.2.2",
|
||||
"contentHash": "hJHivPDA1Vxn0CCgOtHKZ3fmldxQuz7VL1J4lEaPTXCf+Vwcx1FDf05mGMh6olYMSxoKimGX8YK2sEoqeH3pnA==",
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.ObjectPool": "5.0.9"
|
||||
}
|
||||
@ -1494,7 +1494,7 @@
|
||||
"JetBrains.Annotations": "2021.1.0",
|
||||
"MaterialDesignThemes": "4.1.0",
|
||||
"Ninject": "3.3.4",
|
||||
"NoStringEvaluating": "2.2.1",
|
||||
"NoStringEvaluating": "2.2.2",
|
||||
"SkiaSharp": "2.80.3",
|
||||
"Stylet": "1.3.6"
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2021.1.0" />
|
||||
<PackageReference Include="MaterialDesignThemes" Version="4.1.0" />
|
||||
<PackageReference Include="Ninject" Version="3.3.4" />
|
||||
<PackageReference Include="NoStringEvaluating" Version="2.2.1" />
|
||||
<PackageReference Include="NoStringEvaluating" Version="2.2.2" />
|
||||
<PackageReference Include="SkiaSharp" Version="2.80.3" />
|
||||
<PackageReference Include="Stylet" Version="1.3.6" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -39,10 +39,6 @@ namespace Artemis.VisualScripting.Ninject
|
||||
// Evaluator
|
||||
Bind<INoStringEvaluator>().To<NoStringEvaluator>().InSingletonScope();
|
||||
|
||||
// Options
|
||||
NoStringEvaluatorOptions opt = new NoStringEvaluatorOptions().SetWordQuotationMark("!");
|
||||
opt.UpdateConstants();
|
||||
|
||||
// If needed
|
||||
InjectUserDefinedFunctions();
|
||||
}
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using Artemis.Core;
|
||||
using Artemis.Storage.Entities.Profile;
|
||||
using Artemis.VisualScripting.Nodes.DataModel.CustomViewModels;
|
||||
using Stylet;
|
||||
|
||||
namespace Artemis.VisualScripting.Nodes.DataModel
|
||||
{
|
||||
@ -51,8 +50,6 @@ namespace Artemis.VisualScripting.Nodes.DataModel
|
||||
}
|
||||
|
||||
public void UpdateOutputPin(bool loadConnections)
|
||||
{
|
||||
Execute.OnUIThread(() =>
|
||||
{
|
||||
if (Output != null && Output.Type == DataModelPath?.GetPropertyType())
|
||||
return;
|
||||
@ -69,23 +66,17 @@ namespace Artemis.VisualScripting.Nodes.DataModel
|
||||
|
||||
if (loadConnections && Script is NodeScript nodeScript)
|
||||
nodeScript.LoadConnections();
|
||||
});
|
||||
}
|
||||
|
||||
private void DataModelPathOnPathValidated(object sender, EventArgs e)
|
||||
{
|
||||
UpdateOutputPin(true);
|
||||
|
||||
}
|
||||
|
||||
#region IDisposable
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Dispose()
|
||||
{
|
||||
DataModelPath?.Dispose();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@ -29,9 +29,9 @@
|
||||
},
|
||||
"NoStringEvaluating": {
|
||||
"type": "Direct",
|
||||
"requested": "[2.2.1, )",
|
||||
"resolved": "2.2.1",
|
||||
"contentHash": "dYvWeDdSXrfWreWu17XUNCZD1QAbeMuyOLwVxNBBy+mbs1O/QjsYr1uQPCJWqYRF2Rd5nQBLFbFWybz4Ndh68g==",
|
||||
"requested": "[2.2.2, )",
|
||||
"resolved": "2.2.2",
|
||||
"contentHash": "hJHivPDA1Vxn0CCgOtHKZ3fmldxQuz7VL1J4lEaPTXCf+Vwcx1FDf05mGMh6olYMSxoKimGX8YK2sEoqeH3pnA==",
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.ObjectPool": "5.0.9"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user