minor refactoring
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@81 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
@@ -1208,8 +1208,10 @@ void PatchInspector_Construct()
|
||||
GlobalPreferenceSystem().registerPreference("SI_PatchTexdef_Shift2", FloatImportStringCaller(g_pi_globals.shift[1]), FloatExportStringCaller(g_pi_globals.shift[1]));
|
||||
GlobalPreferenceSystem().registerPreference("SI_PatchTexdef_Rotate", FloatImportStringCaller(g_pi_globals.rotate), FloatExportStringCaller(g_pi_globals.rotate));
|
||||
|
||||
GlobalSelectionSystem().addSelectionChangeCallback(FreeCaller1<const Selectable&, PatchInspector_SelectionChanged>());
|
||||
Patch_addTextureChangedCallback(FreeCaller<PatchInspector_queueDraw>());
|
||||
typedef FreeCaller1<const Selectable&, PatchInspector_SelectionChanged> PatchInspectorSelectionChangedCaller;
|
||||
GlobalSelectionSystem().addSelectionChangeCallback(PatchInspectorSelectionChangedCaller());
|
||||
typedef FreeCaller<PatchInspector_queueDraw> PatchInspectorQueueDrawCaller;
|
||||
Patch_addTextureChangedCallback(PatchInspectorQueueDrawCaller());
|
||||
}
|
||||
void PatchInspector_Destroy()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user