- g_useAlternativeTextureProjection.useLatched();
-
- if (g_useAlternativeTextureProjection.m_value) {
- type = eBrushTypeQuake3BP;
- }
-
- // d1223m
- GlobalPreferenceSystem().registerPreference(
- "BrushAlwaysCaulk",
- make_property_string(g_brush_always_caulk)
- );
- }
-
- Brush_registerCommands();
- Brush_registerPreferencesPage();
-
- BrushFilters_construct();
-
- BrushClipPlane::constructStatic();
- BrushInstance::constructStatic();
- Brush::constructStatic(type);
-
- Brush::m_maxWorldCoord = g_MaxWorldCoord;
- BrushInstance::m_counter = &g_brushCount;
-
- g_texdef_default_scale = 0.5f;
- const char *value = g_pGameDescription->getKeyValue("default_scale");
- if (!string_empty(value)) {
- float scale = static_cast<float>( atof(value));
- if (scale != 0) {
- g_texdef_default_scale = scale;
- } else {
- globalErrorStream() << "error parsing \"default_scale\" attribute\n";
- }
- }
+ }
+
+ Brush_registerCommands();
+ Brush_registerPreferencesPage();
+
+ BrushFilters_construct();
+
+ BrushClipPlane::constructStatic();
+ BrushInstance::constructStatic();
+ Brush::constructStatic( type );
+
+ Brush::m_maxWorldCoord = g_MaxWorldCoord;
+ BrushInstance::m_counter = &g_brushCount;
+
+ g_texdef_default_scale = 0.5f;
+ const char* value = g_pGameDescription->getKeyValue( "default_scale" );
+ if ( !string_empty( value ) ) {
+ float scale = static_cast<float>( atof( value ) );
+ if ( scale != 0 ) {
+ g_texdef_default_scale = scale;
+ }
+ else
+ {
+ globalErrorStream() << "error parsing \"default_scale\" attribute\n";
+ }
+ }
+
+ GlobalPreferenceSystem().registerPreference( "TextureLock", make_property_string( g_brush_texturelock_enabled ) );
+ GlobalPreferenceSystem().registerPreference("BrushSnapPlanes", make_property_string<Face_SnapPlanes>(Face::m_quantise));
+ GlobalPreferenceSystem().registerPreference( "TexdefDefaultScale", make_property_string( g_texdef_default_scale ) );
+
+ GridStatus_getTextureLockEnabled = getTextureLockEnabled;
+ g_texture_lock_status_changed = makeCallbackF(GridStatus_onTextureLockEnabledChanged);
+}