Access violation error when selecting a mesh
Posted: Sun Jul 24, 2022 12:31 pm
I have a bug in my project, and it crashes ZGE without warning if I click the Model/ModelState/Definitions/Mesh in the left column.
The problem comes from the MeshExpression that has access to a variable in the definitions of the Model.
I made a strip down example. Contrary to my project, it doesn't crash ZGE entirely, but displays an error window when I select the mesh.
The problem comes from the MeshExpression that has access to a variable in the definitions of the Model.
I made a strip down example. Contrary to my project, it doesn't crash ZGE entirely, but displays an error window when I select the mesh.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2">
<Content>
<Model Name="Model">
<Definitions>
<Variable Name="Variable"/>
</Definitions>
<States>
<ModelState Name="ModelState">
<Definitions>
<Mesh Name="Mesh">
<Producers>
<MeshSphere/>
<MeshExpression VertexColors="255">
<Expression>
<![CDATA[//
C.R = Variable;
C.G = Variable;
C.B = Variable;]]>
</Expression>
</MeshExpression>
</Producers>
</Mesh>
</Definitions>
</ModelState>
</States>
</Model>
</Content>
</ZApplication>