Skip to content

Commit

Permalink
UPBGE: Avoid updating deformer display array at conversion.
Browse files Browse the repository at this point in the history
Previously the RAS_MeshObject was considerated modified
when it was created. This had the side effect to update all
the display array contained in all the deformer using the
the same mesh object. This update was useless as all the
data was just copied in the conversion.

To solve this issue the modified flag is set to 0 as default.
  • Loading branch information
panzergame committed Oct 19, 2016
1 parent 0980316 commit cf38701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Rasterizer/RAS_MeshObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct RAS_MeshObject::fronttoback
STR_String RAS_MeshObject::s_emptyname = "";

RAS_MeshObject::RAS_MeshObject(Mesh *mesh, LayerList& layers)
:m_modifiedFlag(MESH_MODIFIED),
:m_modifiedFlag(0),
m_needUpdateAabb(true),
m_aabbMax(0.0f, 0.0f, 0.0f),
m_aabbMin(0.0f, 0.0f, 0.0f),
Expand Down

0 comments on commit cf38701

Please sign in to comment.