IMyLightingBlock.Intensity not properly updating blocks visual

Nebojsa Aleksic shared this bug 4 years ago
Outdated

Regards


// Sandbox.Game.Entities.Blocks.MyLightingBlock


// Terminal property uses:


public float Intensity

{

get

{

return m_intensity;

}

set

{

if ((float)m_intensity != value)

{

m_intensity.Value = value;

UpdateIntensity();

UpdateLightProperties();

RaisePropertiesChanged();

}

}

}


// interface property uses:


float IMyLightingBlock.Intensity

{

get

{

return m_intensity;

}

set

{

value = MathHelper.Clamp(value, IntensityBounds.Min, IntensityBounds.Max);

m_intensity.Value = value;

}

}

Replies (2)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.


Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

photo
1

Thank you for considering. Feel free to edit the post, namely the code part that i messed up. Apologies for that.

Leave a Comment
 
Attach a file