
Cheers,
PI
Wait are you telling me that when u compile the editor yourself it doesn't work but the exe i provided works?ACE247 wrote:It seems the segfault lies solely with the wxWidgets buttons, somewhere there is a problem with those, through scripts I can perfectly well add scene node animators and nodes. But not with the add node and add animator buttons.
Thanks for the Exe by the way, works perfectly.
Code: Select all
void MaterialEditor::OntexRepXChange(wxSpinEvent& event)
{
s32 ts_matIndex= MaterialIndex->GetValue();
s32 ts_texLayer= TextureLayer->GetValue();
s32 ts_texRepY= texRepY->GetValue();
s32 ts_texRepX= texRepX->GetValue();
core::matrix4 mat= Node->getMaterial(ts_matIndex).getTextureMatrix(ts_texLayer);
mat.setTextureScale(ts_texRepX, ts_texRepY);
Node->getMaterial(ts_matIndex).setTextureMatrix(ts_texLayer, mat);
}