"Defined var mismatch"?
Posted: Mon Mar 28, 2016 2:43 am
In one of the models in my project I have a following condition in the OnRender:
"return (NoiseBlink < 0.5);"
where the NoiseBlink variable is of float type. The whole OnRender component looks like this:
So every time I click on this Model I get a red-bold type error in the console that says
"Defined var mismatch "NoiseBlink" in model "mod_Noise" must be at position 3 in Definitions-list."
(and the preview of the Model starts flashing),
What does that mean?
"return (NoiseBlink < 0.5);"
where the NoiseBlink variable is of float type. The whole OnRender component looks like this:
Code: Select all
ZZDC<?xml version="1.0" encoding="iso-8859-1" ?>
<Condition Comment="Should blink?" Expression="return (NoiseBlink < 0.5);">
<OnTrue>
<UseMaterial Material="mat_ColorMondrian"/>
<RenderSetColor Color="0 0 0 1"/>
<RenderMesh Mesh="mesh_Rectangle"/>
<RenderSetColor Color="1 1 1 1"/>
<RenderTransformGroup Name="transf_NoiseTile" Translate="0 0.1 0">
<Children>
<RenderTile Name="rendTile_noise" TileSet="tSet_RoomBkg"/>
</Children>
</RenderTransformGroup>
</OnTrue>
<OnFalse>
<UseMaterial Material="mat_ColorMondrian"/>
<RenderSetColor Color="1 1 1 1"/>
<RenderMesh Mesh="mesh_Rectangle"/>
</OnFalse>
</Condition>
"Defined var mismatch "NoiseBlink" in model "mod_Noise" must be at position 3 in Definitions-list."
(and the preview of the Model starts flashing),
What does that mean?