Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35672] trunk/blender/source/blender: Bugfix #26549

2011-03-21 Thread Mitchell Stokes
id_us_min(texn->env->ima) generates a warning and causes MSVC+CMake to not build since warnings are treated as errors. id_us_min((ID*)texn->env->ima) is fine though. If this is the right change, than I can go ahead and commit it. Cheers, Mitchell On Mon, Mar 21, 2011 at 10:10 AM, Ton Roosendaal

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35672] trunk/blender/source/blender: Bugfix #26549

2011-03-21 Thread Dalai Felinto
Mitchell, this is a safe fix. If you can commit it go for it. Datablocks have ID as the first element of the struct so in the end a pointer to the datablock and a pointer to the ID struct points to the same address. So although the warning is valid, the code itself should be ok (after silencing th