[Gtkradiant] PatchCreation bugfix: remaining brush will be removed

"Eduard Aumüller" basiror at gmx.de
Sun Mar 18 18:39:24 CDT 2007


Hi, 
you might have notices that when you create a patch from scratch, the previously selected brush will remain, unselected


With the fix the unneeded brush will be gone.

Here is a little fix.

1. get the selection bounds
2. clear the selection
3. create the patch with the previously gained AABB

code in patchmanip.cpp line 915

new code:
 915                 //get the bounds of the current selection
 916                 AABB patch_creator_aabb = PatchCreator_getBounds();
 917
 918                 //delete the current selection
 919                 Select_Delete();
 920
 921                 //create the new patch
 922                 Scene_PatchConstructPrefab(GlobalSceneGraph(), patch_creator_aabb,
 923                         TextureBrowser_GetSelectedShader(GlobalTextureBrowser()), ePlane, GlobalXYWnd_getCurrentViewType(), w, h);


please adjust this in the SVN repository

cya

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the Gtkradiant mailing list