CodePlexProject Hosting for Open Source Software
hi again .
in MaterialHelper.ChangeOpacity you forgot to add support for ImageBrush :
I just add this lines
var scbi = dm.Brush as ImageBrush;
if (scbi != null)
scbi.Opacity = d;
if (scb != null)
scb.Opacity = d;
and problem solved.
Thanks for pointing this out! Actually, the code could be changed to
var dm = material as DiffuseMaterial;
if (dm != null && dm.Brush != null)
dm.Brush.Opacity = d;
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.