mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Merge branch 'development'
This commit is contained in:
commit
5fa549be61
24 files changed
+1804
-336
No files matched your search
@@ -75,7 +75,8 @@ namespace Artemis.Core
|
||||
/// </param>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing) InternalDisable();
|
||||
if (disposing)
|
||||
SetEnabled(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -104,16 +105,6 @@ namespace Artemis.Core
|
||||
Profiler.StopMeasurement("Update");
|
||||
}
|
||||
|
||||
internal void StartRenderMeasure()
|
||||
{
|
||||
Profiler.StartMeasurement("Render");
|
||||
}
|
||||
|
||||
internal void StopRenderMeasure()
|
||||
{
|
||||
Profiler.StopMeasurement("Render");
|
||||
}
|
||||
|
||||
internal void SetEnabled(bool enable, bool isAutoEnable = false)
|
||||
{
|
||||
if (enable == IsEnabled)
|
||||
|
||||
@@ -11,10 +11,6 @@ namespace Artemis.Core.ScriptingProviders
|
||||
protected ProfileScript(Profile profile, ScriptConfiguration configuration) : base(configuration)
|
||||
{
|
||||
Profile = profile;
|
||||
lock (Profile.Scripts)
|
||||
{
|
||||
Profile.Scripts.Add(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -20,8 +20,6 @@ namespace Artemis.Core.ScriptingProviders
|
||||
throw new ArtemisCoreException("The provided script configuration already has an active script");
|
||||
|
||||
ScriptConfiguration = configuration;
|
||||
ScriptConfiguration.Script = this;
|
||||
|
||||
ScriptConfiguration.PropertyChanged += ScriptConfigurationOnPropertyChanged;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user